mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-05 09:00:54 +00:00
merge generic_func_idea from git
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@433 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
|
||||
#include <Mw/MachDep.h>
|
||||
#include <Mw/TypeDefs.h>
|
||||
#include <Mw/Core.h>
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <windows.h>
|
||||
@@ -33,7 +34,9 @@ MWDECL MwClass MwOpenGLClass;
|
||||
* %brief Make a widget current OpenGL context
|
||||
* %param handle Widget
|
||||
*/
|
||||
MWDECL void MwOpenGLMakeCurrent(MwWidget handle);
|
||||
MwInline void MwOpenGLMakeCurrent(MwWidget handle) {
|
||||
MwWidgetExecute(handle, "mwOpenGLMakeCurrent", NULL);
|
||||
};
|
||||
|
||||
/*!
|
||||
* %brief Get a procedure from OpenGL
|
||||
@@ -41,13 +44,19 @@ MWDECL void MwOpenGLMakeCurrent(MwWidget handle);
|
||||
* %param name Name
|
||||
* %return Procedure
|
||||
*/
|
||||
MWDECL void* MwOpenGLGetProcAddress(MwWidget handle, const char* name);
|
||||
MwInline void* MwOpenGLGetProcAddress(MwWidget handle, const char* name) {
|
||||
void* out;
|
||||
MwWidgetExecute(handle, "mwOpenGLGetProcAddress", &out, name);
|
||||
return out;
|
||||
};
|
||||
|
||||
/*!
|
||||
* %brief Swaps the buffer of OpenGL context
|
||||
* %param handle Widget
|
||||
*/
|
||||
MWDECL void MwOpenGLSwapBuffer(MwWidget handle);
|
||||
MwInline void MwOpenGLSwapBuffer(MwWidget handle) {
|
||||
MwWidgetExecute(handle, "mwOpenGLSwapBuffer", NULL);
|
||||
};
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user