Version: stable
ENUMS | |
---|---|
CompareFunc | |
FaceWinding | |
StencilOp | |
BufferUsage | |
BufferAccess | |
IndexBufferFormat | |
PrimitiveType | Primitive type |
Type | Data type |
Type | Blend factor |
dmGraphics::GetNativeiOSUIWindow()
Get iOS UIWindow native handle (id). Any other platform return zero.
PARAMETERS
None
RETURNS
id |
id | native handle |
dmGraphics::GetNativeiOSUIView()
Get iOS UIView native handle (id). Any other platform return zero.
PARAMETERS
None
RETURNS
id |
id | native handle |
dmGraphics::GetNativeiOSEAGLContext()
Get iOS EAGLContext native handle (id). Any other platform return zero.
PARAMETERS
None
RETURNS
id |
id | native handle |
dmGraphics::GetNativeOSXNSWindow()
Get OSX NSWindow native handle (id). Any other platform return zero.
PARAMETERS
None
RETURNS
id |
id | native handle |
dmGraphics::GetNativeOSXNSView()
Get OSX NSView native handle (id). Any other platform return zero.
PARAMETERS
None
RETURNS
id |
id | native handle |
dmGraphics::GetNativeOSXNSOpenGLContext()
Get OSX NSOpenGLContext native handle (id). Any other platform return zero.
PARAMETERS
None
RETURNS
id |
id | native handle |
dmGraphics::GetNativeWindowsHWND()
Get Win32 windows native handle (HWND). Any other platform return zero.
PARAMETERS
None
RETURNS
HWND |
HWND | native handle |
dmGraphics::GetNativeWindowsHGLRC()
Get Win32 gl rendercontext native handle (HGLRC). Any other platform return zero.
PARAMETERS
None
RETURNS
HGLRC |
HGLRC | native handle |
dmGraphics::GetNativeAndroidEGLContext()
Get Android EGLContext native handle (EGLContext). Any other platform return zero.
PARAMETERS
None
RETURNS
EGLContext |
EGLContext | native handle |
dmGraphics::GetNativeAndroidEGLSurface()
Get Android EGLSurface native handle (EGLSurface). Any other platform return zero.
PARAMETERS
None
RETURNS
EGLSurface |
EGLSurface | native handle |
dmGraphics::GetNativeAndroidJavaVM()
Get Android JavaVM ptr. Any other platform return zero.
PARAMETERS
None
RETURNS
JavaVM* |
JavaVM* | native handle |
dmGraphics::GetNativeAndroidActivity()
Get Android native jobject. Any other platform return zero.
PARAMETERS
None
RETURNS
jobject |
jobject | native handle |
dmGraphics::GetNativeAndroidApp()
Get Android app object. Any other platform return zero.
PARAMETERS
None
RETURNS
app |
struct android_app* | native handle |
dmGraphics::GetNativeX11Window()
Get Linux X11Window windows native handle (Window). Any other platform return zero.
PARAMETERS
None
RETURNS
Window |
Window | native handle |
dmGraphics::GetNativeX11GLXContext()
Get Linux X11GLXContext native handle (GLXContext). Any other platform return zero.
PARAMETERS
None
RETURNS
GLXContext |
GLXContext | native handle |
NewVertexDeclaration(context,element,count)
Create new vertex declaration
PARAMETERS
context |
dmGraphics::HContext |
the context |
element |
dmGraphics::VertexElement* |
the array of vertex elements |
count |
uint32_t |
the number of items in the element array |
RETURNS
declaration |
dmGraphics::HVertexDeclaration | the vertex declaration |
NewVertexDeclaration(context,element,count,stride)
Create new vertex declaration
PARAMETERS
context |
dmGraphics::HContext |
the context |
element |
dmGraphics::VertexElement* |
the array of vertex elements |
count |
uint32_t |
the number of items in the element array |
stride |
uint32_t |
the stride between the start of each vertex (in bytes) |
RETURNS
declaration |
dmGraphics::HVertexDeclaration | the vertex declaration |
DeleteVertexDeclaration(vertex_declaration)
Delete vertex declaration
PARAMETERS
vertex_declaration |
dmGraphics::HVertexDeclaration |
the vertex declaration |
NewVertexBuffer(context,size,data,buffer_usage)
Create new vertex buffer with initial data
PARAMETERS
context |
dmGraphics::HContext |
the context |
size |
uint32_t |
the size of the buffer (in bytes). May be 0 |
data |
void* |
the data |
buffer_usage |
dmGraphics::BufferUsage |
the usage |
RETURNS
buffer |
dmGraphics::HVertexBuffer | the vertex buffer |
DeleteVertexBuffer(buffer)
Delete vertex buffer
PARAMETERS
buffer |
dmGraphics::HVertexBuffer |
the buffer |
SetVertexBufferData(buffer,size,data,buffer_usage)
Set vertex buffer data
PARAMETERS
buffer |
dmGraphics::HVertexBuffer |
the buffer |
size |
uint32_t |
the size of the buffer (in bytes). May be 0 |
data |
void* |
the data |
buffer_usage |
dmGraphics::BufferUsage |
the usage |
SetVertexBufferSubData(buffer,offset,size,data)
Set subset of vertex buffer data
PARAMETERS
buffer |
dmGraphics::HVertexBuffer |
the buffer |
offset |
uint32_t |
the offset into the desination buffer (in bytes) |
size |
uint32_t |
the size of the buffer (in bytes). May be 0 |
data |
void* |
the data |
GetMaxElementsVertices(context)
Get the max number of vertices allowed by the system in a vertex buffer
PARAMETERS
context |
dmGraphics::HContext |
the context |
RETURNS
count |
uint32_t | the count |
NewIndexBuffer(context,size,data,buffer_usage)
Create new index buffer with initial data
PARAMETERS
context |
dmGraphics::HContext |
the context |
size |
uint32_t |
the size of the buffer (in bytes). May be 0 |
data |
void* |
the data |
buffer_usage |
dmGraphics::BufferUsage |
the usage |
RETURNS
buffer |
dmGraphics::HIndexBuffer | the index buffer |
DeleteIndexBuffer(buffer)
Delete the index buffer
PARAMETERS
buffer |
dmGraphics::HIndexBuffer |
the index buffer |
SetIndexBufferData(buffer,size,data,buffer_usage)
Set index buffer data
PARAMETERS
buffer |
dmGraphics::HIndexBuffer |
the buffer |
size |
uint32_t |
the size of the buffer (in bytes). May be 0 |
data |
void* |
the data |
buffer_usage |
dmGraphics::BufferUsage |
the usage |
SetIndexBufferSubData(buffer,offset,size,data)
Set subset of index buffer data
PARAMETERS
buffer |
dmGraphics::HVertexBuffer |
the buffer |
offset |
uint32_t |
the offset into the desination buffer (in bytes) |
size |
uint32_t |
the size of the buffer (in bytes). May be 0 |
data |
void* |
the data |
IsIndexBufferFormatSupported(context,format,result)
Check if the index format is supported
PARAMETERS
context |
dmGraphics::HContext |
the context |
format |
dmGraphics::IndexBufferFormat |
the format |
result |
bool |
true if the format is supoprted |
GetMaxElementsIndices(context)
Get the max number of indices allowed by the system in an index buffer
PARAMETERS
context |
dmGraphics::HContext |
the context |
RETURNS
count |
uint32_t | the count |
IsExtensionSupported(context,extension)
check if an extension is supported
PARAMETERS
context |
dmGraphics::HContext |
the context |
extension |
const char* |
the extension. Comparison is |
RETURNS
result |
bool | true if the extension was supported |
GetNumSupportedExtensions(context)
PARAMETERS
context |
dmGraphics::HContext |
the context |
RETURNS
count |
uint32_t | the number of supported extensions |
GetSupportedExtension(context,index)
get the supported extension
PARAMETERS
context |
dmGraphics::HContext |
the context |
index |
uint32_t |
the index of the extension |
RETURNS
extension |
const char* | the extension. 0 if index was out of bounds |