#include <wx/ogl/basic.h>
#include <wx/ogl/lines.h>
#include <wx/ogl/divided.h>
#include <wx/ogl/composit.h>
#include <wx/ogl/canvas.h>
#include <wx/ogl/ogldiag.h>
Go to the source code of this file.
Functions |
|
void | wxOGLInitialize () |
void | wxOGLCleanUp () |
|
Definition at line 79 of file misc.cpp. 00080 { 00081 if (oglBuffer) 00082 { 00083 delete[] oglBuffer; 00084 oglBuffer = NULL; 00085 } 00086 oglBuffer = NULL; 00087 00088 g_oglNormalFont = NULL; // These will be cleaned up by their GDI list 00089 g_oglBlackPen = NULL; 00090 g_oglTransparentPen = NULL; 00091 g_oglBlackForegroundPen = NULL; 00092 g_oglWhiteBackgroundPen = NULL; 00093 g_oglWhiteBackgroundBrush = NULL; 00094 00095 OGLCleanUpConstraintTypes(); 00096 } |
|
Definition at line 63 of file misc.cpp. 00064 { 00065 g_oglNormalFont = wxTheFontList->FindOrCreateFont(10, wxSWISS, wxNORMAL, wxNORMAL); 00066 g_oglBlackPen = wxThePenList->FindOrCreatePen(wxT("BLACK"), 1, wxSOLID); 00067 g_oglTransparentPen = wxThePenList->FindOrCreatePen(wxT("WHITE"), 1, wxTRANSPARENT); 00068 g_oglBlackForegroundPen = wxThePenList->FindOrCreatePen(wxT("BLACK"), 1, wxSOLID); 00069 g_oglWhiteBackgroundPen = wxThePenList->FindOrCreatePen(wxT("WHITE"), 1, wxSOLID); 00070 g_oglWhiteBackgroundBrush = wxTheBrushList->FindOrCreateBrush(wxT("WHITE"), wxSOLID); 00071 00072 OGLInitializeConstraintTypes(); 00073 00074 // Initialize big buffer used when writing images 00075 oglBuffer = new char[3000]; 00076 00077 } |