SDK Graphics API documentation

<dmsdk/graphics/graphics_native.h>

Platform specific native graphics functions.

FUNCTION
dmGraphics::GetNativeAndroidActivity()

get Android native jobject

dmGraphics::GetNativeAndroidApp()

get Android app object

dmGraphics::GetNativeAndroidEGLContext()

get Android EGLContext

dmGraphics::GetNativeAndroidEGLSurface()

get Android EGLSurface

dmGraphics::GetNativeAndroidJavaVM()

get Android native JavaVM

dmGraphics::GetNativeOSXNSOpenGLContext()

get OSX NSOpenGLContext

dmGraphics::GetNativeOSXNSView()

get OSX NSView

dmGraphics::GetNativeOSXNSWindow()

get OSX NSWindow

dmGraphics::GetNativeWindowsHGLRC()

get Win32 HGLRC

dmGraphics::GetNativeWindowsHWND()

get Win32 HWND

dmGraphics::GetNativeX11GLXContext()

get Linux X11GLXContext

dmGraphics::GetNativeX11Window()

get Linux X11Window

dmGraphics::GetNativeiOSEAGLContext()

get iOS EAGLContext

dmGraphics::GetNativeiOSUIView()

get iOS UIView

dmGraphics::GetNativeiOSUIWindow()

get iOS UIWindow

Functions

dmGraphics::GetNativeAndroidActivity()

dmGraphics::GetNativeAndroidActivity()

Get Android native jobject. Any other platform return zero.

PARAMETERS

RETURNS

jobject

jobject native handle


dmGraphics::GetNativeAndroidApp()

dmGraphics::GetNativeAndroidApp()

Get Android app object. Any other platform return zero.

PARAMETERS

RETURNS

app

struct android_app* native handle


dmGraphics::GetNativeAndroidEGLContext()

dmGraphics::GetNativeAndroidEGLContext()

Get Android EGLContext native handle (EGLContext). Any other platform return zero.

PARAMETERS

RETURNS

EGLContext

EGLContext native handle


dmGraphics::GetNativeAndroidEGLSurface()

dmGraphics::GetNativeAndroidEGLSurface()

Get Android EGLSurface native handle (EGLSurface). Any other platform return zero.

PARAMETERS

RETURNS

EGLSurface

EGLSurface native handle


dmGraphics::GetNativeAndroidJavaVM()

dmGraphics::GetNativeAndroidJavaVM()

Get Android JavaVM ptr. Any other platform return zero.

PARAMETERS

RETURNS

JavaVM*

JavaVM* native handle


dmGraphics::GetNativeOSXNSOpenGLContext()

dmGraphics::GetNativeOSXNSOpenGLContext()

Get OSX NSOpenGLContext native handle (id). Any other platform return zero.

PARAMETERS

RETURNS

id

id native handle


dmGraphics::GetNativeOSXNSView()

dmGraphics::GetNativeOSXNSView()

Get OSX NSView native handle (id). Any other platform return zero.

PARAMETERS

RETURNS

id

id native handle


dmGraphics::GetNativeOSXNSWindow()

dmGraphics::GetNativeOSXNSWindow()

Get OSX NSWindow native handle (id). Any other platform return zero.

PARAMETERS

RETURNS

id

id native handle


dmGraphics::GetNativeWindowsHGLRC()

dmGraphics::GetNativeWindowsHGLRC()

Get Win32 gl rendercontext native handle (HGLRC). Any other platform return zero.

PARAMETERS

RETURNS

HGLRC

HGLRC native handle


dmGraphics::GetNativeWindowsHWND()

dmGraphics::GetNativeWindowsHWND()

Get Win32 windows native handle (HWND). Any other platform return zero.

PARAMETERS

RETURNS

HWND

HWND native handle


dmGraphics::GetNativeX11GLXContext()

dmGraphics::GetNativeX11GLXContext()

Get Linux X11GLXContext native handle (GLXContext). Any other platform return zero.

PARAMETERS

RETURNS

GLXContext

GLXContext native handle


dmGraphics::GetNativeX11Window()

dmGraphics::GetNativeX11Window()

Get Linux X11Window windows native handle (Window). Any other platform return zero.

PARAMETERS

RETURNS

Window

Window native handle


dmGraphics::GetNativeiOSEAGLContext()

dmGraphics::GetNativeiOSEAGLContext()

Get iOS EAGLContext native handle (id). Any other platform return zero.

PARAMETERS

RETURNS

id

id native handle


dmGraphics::GetNativeiOSUIView()

dmGraphics::GetNativeiOSUIView()

Get iOS UIView native handle (id). Any other platform return zero.

PARAMETERS

RETURNS

id

id native handle


dmGraphics::GetNativeiOSUIWindow()

dmGraphics::GetNativeiOSUIWindow()

Get iOS UIWindow native handle (id). Any other platform return zero.

PARAMETERS

RETURNS

id

id native handle