Skip to content

Commit

Permalink
support for ortho camera
Browse files Browse the repository at this point in the history
  • Loading branch information
micahpearlman committed Feb 21, 2022
1 parent 429ab4d commit bec0924
Show file tree
Hide file tree
Showing 5 changed files with 689 additions and 711 deletions.
10 changes: 9 additions & 1 deletion include/MonkVG/vgext.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,10 @@ extern "C" {

VG_PARAM_TYPE_MNK_FORCE_SIZE = VG_MAX_ENUM
} VGParamTypeMNK;


/*
* Rendering backend to use
*/
typedef enum {
VG_RENDERING_BACKEND_TYPE_OPENGLES11 = 0,
VG_RENDERING_BACKEND_TYPE_OPENGLES20 = 1,
Expand All @@ -94,6 +97,11 @@ extern "C" {
VG_API_CALL void vgResizeSurfaceMNK( VGint width, VGint height );
VG_API_CALL void vgDestroyContextMNK( void );

/* Helper function for things like camera
*/
VG_API_CALL void vgPushOrthoCamera( VGfloat left, VGfloat right, VGfloat bottom, VGfloat top, VGfloat near, VGfloat far );
VG_API_CALL void vgPopOrthoCamera();


#ifdef __cplusplus
} /* extern "C" */
Expand Down
Loading

0 comments on commit bec0924

Please sign in to comment.