mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-01 15:10:50 +00:00
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@249 b9cfdab3-6d41-4d17-bbe4-086880011989
57 lines
913 B
C
57 lines
913 B
C
/* $Id$ */
|
|
/*!
|
|
* %file Mw/Widget/OpenGL.h
|
|
* %brief OpenGL widget
|
|
*/
|
|
#ifndef __MW_WIDGET_OPENGL_H__
|
|
#define __MW_WIDGET_OPENGL_H__
|
|
|
|
#include <Mw/MachDep.h>
|
|
#include <Mw/TypeDefs.h>
|
|
|
|
#ifdef _WIN32
|
|
#include <windows.h>
|
|
#else
|
|
#include <GL/glx.h>
|
|
#endif
|
|
#include <GL/gl.h>
|
|
|
|
#ifndef GLAPIENTRY
|
|
#define GLAPIENTRY APIENTRY
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/*!
|
|
* %brief OpenGL widget class
|
|
*/
|
|
MWDECL MwClass MwOpenGLClass;
|
|
|
|
/*!
|
|
* %brief Make a widget current OpenGL context
|
|
* %param handle Widget
|
|
*/
|
|
MWDECL void MwOpenGLMakeCurrent(MwWidget handle);
|
|
|
|
/*!
|
|
* %brief Get a procedure from OpenGL
|
|
* %param handle Widget
|
|
* %param name Name
|
|
* %return Procedure
|
|
*/
|
|
MWDECL void* MwOpenGLGetProcAddress(MwWidget handle, const char* name);
|
|
|
|
/*!
|
|
* %brief Swaps the buffer of OpenGL context
|
|
* %param handle Widget
|
|
*/
|
|
MWDECL void MwOpenGLSwapBuffer(MwWidget handle);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|