sscore_graphics_mac+ios.h

Includes:
"sscore_graphics.h"
<CoreGraphics/CoreGraphics.h>

Introduction

The C interface to creation of the sscore_graphics for OS X and iOS



Functions

sscore_graphics_create

create a platform-independent wrapper around the OS graphics context

sscore_graphics_create_from_bitmap

obtain a platform-independent wrapper around the OS graphics context backed by a bitmap

sscore_graphics_native_context

access the platform graphics context


sscore_graphics_create


create a platform-independent wrapper around the OS graphics context

Return Value

a platform independent sscore_graphics wrapper around the platform graphics context obtained in a UI draw call

Discussion

must call sscore_graphics_dispose when complete


sscore_graphics_create_from_bitmap


obtain a platform-independent wrapper around the OS graphics context backed by a bitmap

Parameters
width

the width of the bitmap

height

the height of the bitmap

Return Value

a platform independent sscore_graphics wrapper around the platform graphics context backed by a bitmap

Discussion

must call sscore_graphics_dispose when complete which will also dispose the bitmap


sscore_graphics_native_context


access the platform graphics context

CGContextRef sscore_graphics_native_context(
    const sscore_graphics *graph);  
Parameters
graph

the graphics context returned from sscore_graphics_create...

Return Value

the iOS or OS X CGContextRef