git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@61 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-09-29 08:20:45 +00:00
parent 40aabee23a
commit ed7dc61897
9 changed files with 199 additions and 12 deletions

View File

@@ -13,5 +13,6 @@
#include <Mw/Window.h>
#include <Mw/Button.h>
#include <Mw/OpenGL.h>
#endif

21
include/Mw/OpenGL.h Normal file
View File

@@ -0,0 +1,21 @@
/* $Id$ */
#ifndef __MW_OPENGL_H__
#define __MW_OPENGL_H__
#include <Mw/MachDep.h>
#include <Mw/TypeDefs.h>
#ifdef __cplusplus
extern "C" {
#endif
MWDECL MwClass MwOpenGLClass;
MWDECL void MwOpenGLMakeCurrent(MwWidget handle);
MWDECL void MwOpenGLSwapBuffer(MwWidget handle);
#ifdef __cplusplus
}
#endif
#endif

View File

@@ -63,6 +63,8 @@ struct _MwWidget {
int pressed;
int close;
void* internal;
MwIntegerKeyValue* integer;
MwTextKeyValue* text;
MwUserHandlerKeyValue* handler;
@@ -70,7 +72,6 @@ struct _MwWidget {
#endif
struct _MwClass {
void* opaque;
MwHandler create;
MwHandler destroy;
MwHandler draw;