mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2025-12-31 14:40:49 +00:00
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@437 b9cfdab3-6d41-4d17-bbe4-086880011989
38 lines
922 B
C++
38 lines
922 B
C++
/* $Id$ */
|
|
#include <MwOO/Widget/OpenGL.h>
|
|
#include <Mw/Widget/OpenGL.h>
|
|
|
|
MwOO::OpenGL::OpenGL(const char* widget_name, MwOO::Base* parent, int x, int y, int w, int h) : MwOO::Base(MwOpenGLClass, widget_name, parent, x, y, w, h){
|
|
}
|
|
|
|
void MwOO::OpenGL::MakeCurrent(void){
|
|
MwOpenGLMakeCurrent(this->widget);
|
|
}
|
|
|
|
void* MwOO::OpenGL::GetProcAddress(const char* name){
|
|
void* ret;
|
|
ret = MwOpenGLGetProcAddress(this->widget, name);
|
|
return ret;
|
|
}
|
|
|
|
void MwOO::OpenGL::SwapBuffer(void){
|
|
MwOpenGLSwapBuffer(this->widget);
|
|
}
|
|
|
|
void MwOO::OpenGL::SetBackground(const char* value){
|
|
MwSetText(this->widget, MwNbackground, value);
|
|
}
|
|
|
|
const char* MwOO::OpenGL::GetBackground(void){
|
|
return MwGetText(this->widget, MwNbackground);
|
|
}
|
|
|
|
void MwOO::OpenGL::SetForeground(const char* value){
|
|
MwSetText(this->widget, MwNforeground, value);
|
|
}
|
|
|
|
const char* MwOO::OpenGL::GetForeground(void){
|
|
return MwGetText(this->widget, MwNforeground);
|
|
}
|
|
|