core-graphics: adding some more functions.
parent
36a5cba0eb
commit
cf1b282ced
|
@ -1,9 +1,13 @@
|
||||||
! Copyright (C) 2009 Slava Pestov.
|
! Copyright (C) 2009 Slava Pestov.
|
||||||
! See http://factorcode.org/license.txt for BSD license.
|
! See http://factorcode.org/license.txt for BSD license.
|
||||||
USING: alien alien.c-types alien.data alien.destructors
|
|
||||||
alien.syntax accessors destructors fry kernel math math.bitwise
|
USING: accessors alien alien.c-types alien.data
|
||||||
sequences libc colors images images.memory core-graphics.types
|
alien.destructors alien.syntax colors
|
||||||
core-foundation.utilities opengl.gl literals ;
|
core-foundation.dictionaries core-foundation.strings
|
||||||
|
core-foundation.urls core-foundation.utilities
|
||||||
|
core-graphics.types destructors fry images images.memory kernel
|
||||||
|
libc math opengl.gl sequences ;
|
||||||
|
|
||||||
IN: core-graphics
|
IN: core-graphics
|
||||||
|
|
||||||
TYPEDEF: int CGImageAlphaInfo
|
TYPEDEF: int CGImageAlphaInfo
|
||||||
|
@ -59,6 +63,10 @@ FUNCTION: CGContextRef CGBitmapContextCreate (
|
||||||
CGBitmapInfo bitmapInfo
|
CGBitmapInfo bitmapInfo
|
||||||
) ;
|
) ;
|
||||||
|
|
||||||
|
FUNCTION: CGImageRef CGBitmapContextCreateImage
|
||||||
|
CGContextRef c
|
||||||
|
) ;
|
||||||
|
|
||||||
FUNCTION: void CGColorSpaceRelease ( CGColorSpaceRef ref ) ;
|
FUNCTION: void CGColorSpaceRelease ( CGColorSpaceRef ref ) ;
|
||||||
|
|
||||||
DESTRUCTOR: CGColorSpaceRelease
|
DESTRUCTOR: CGColorSpaceRelease
|
||||||
|
@ -113,6 +121,23 @@ FUNCTION: size_t CGImageGetHeight (
|
||||||
CGImageRef image
|
CGImageRef image
|
||||||
) ;
|
) ;
|
||||||
|
|
||||||
|
FUNCTION: CGImageDestinationRef CGImageDestinationCreateWithURL (
|
||||||
|
CFURLRef url,
|
||||||
|
CFStringRef type,
|
||||||
|
size_t count,
|
||||||
|
CFDictionaryRef options
|
||||||
|
) ;
|
||||||
|
|
||||||
|
FUNCTION: void CGImageDestinationAddImage (
|
||||||
|
CGImageDestinationRef idst,
|
||||||
|
CGImageRef image,
|
||||||
|
CFDictionaryRef properties
|
||||||
|
) ;
|
||||||
|
|
||||||
|
FUNCTION: bool CGImageDestinationFinalize (
|
||||||
|
CGImageDestinationRef idst
|
||||||
|
) ;
|
||||||
|
|
||||||
FUNCTION: void* CGBitmapContextGetData ( CGContextRef c ) ;
|
FUNCTION: void* CGBitmapContextGetData ( CGContextRef c ) ;
|
||||||
|
|
||||||
CONSTANT: kCGLRendererGenericFloatID 0x00020400
|
CONSTANT: kCGLRendererGenericFloatID 0x00020400
|
||||||
|
|
Loading…
Reference in New Issue