]> git.saurik.com Git - wxWidgets.git/blob - src/palmos/glcanvas.cpp
aui documentation updates
[wxWidgets.git] / src / palmos / glcanvas.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/palmos/glcanvas.cpp
3 // Purpose: wxGLCanvas, for using OpenGL with wxWidgets
4 // Author: William Osborne - minimal working wxPalmOS port
5 // Modified by:
6 // Created: 10/13/04
7 // RCS-ID: $Id$
8 // Copyright: (c) William Osborne
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #include "wx/wxprec.h"
13
14 #if defined(__BORLANDC__)
15 #pragma hdrstop
16 #endif
17
18 #if wxUSE_GLCANVAS
19
20 #ifndef WX_PRECOMP
21 #include "wx/frame.h"
22 #include "wx/settings.h"
23 #include "wx/intl.h"
24 #include "wx/log.h"
25 #include "wx/app.h"
26 #endif
27
28 #include "wx/palmos/private.h"
29
30 // DLL options compatibility check:
31 #include "wx/build.h"
32 WX_CHECK_BUILD_OPTIONS("wxGL")
33
34 #include "wx/glcanvas.h"
35
36 static const wxChar *wxGLCanvasClassName = wxT("wxGLCanvasClass");
37 static const wxChar *wxGLCanvasClassNameNoRedraw = wxT("wxGLCanvasClassNR");
38
39 LRESULT WXDLLEXPORT APIENTRY _EXPORT wxWndProc(HWND hWnd, UINT message,
40 WPARAM wParam, LPARAM lParam);
41
42 /*
43 * GLContext implementation
44 */
45
46 wxGLContext::wxGLContext(bool WXUNUSED(isRGB), wxGLCanvas *win, const wxPalette& WXUNUSED(palette))
47 {
48 }
49
50 wxGLContext::wxGLContext(
51 bool WXUNUSED(isRGB), wxGLCanvas *win,
52 const wxPalette& WXUNUSED(palette),
53 const wxGLContext *other /* for sharing display lists */
54 )
55 {
56 }
57
58 wxGLContext::~wxGLContext()
59 {
60 }
61
62 void wxGLContext::SwapBuffers()
63 {
64 }
65
66 void wxGLContext::SetCurrent()
67 {
68 }
69
70 void wxGLContext::SetColour(const wxChar *colour)
71 {
72 }
73
74
75 /*
76 * wxGLCanvas implementation
77 */
78
79 IMPLEMENT_CLASS(wxGLCanvas, wxWindow)
80
81 BEGIN_EVENT_TABLE(wxGLCanvas, wxWindow)
82 EVT_SIZE(wxGLCanvas::OnSize)
83 EVT_PALETTE_CHANGED(wxGLCanvas::OnPaletteChanged)
84 EVT_QUERY_NEW_PALETTE(wxGLCanvas::OnQueryNewPalette)
85 END_EVENT_TABLE()
86
87 wxGLCanvas::wxGLCanvas(wxWindow *parent, wxWindowID id,
88 const wxPoint& pos, const wxSize& size, long style, const wxString& name,
89 int *attribList, const wxPalette& palette) : wxWindow()
90 {
91 }
92
93 wxGLCanvas::wxGLCanvas( wxWindow *parent,
94 const wxGLContext *shared, wxWindowID id,
95 const wxPoint& pos, const wxSize& size, long style, const wxString& name,
96 int *attribList, const wxPalette& palette )
97 : wxWindow()
98 {
99 }
100
101 // Not very useful for wxMSW, but this is to be wxGTK compliant
102
103 wxGLCanvas::wxGLCanvas( wxWindow *parent, const wxGLCanvas *shared, wxWindowID id,
104 const wxPoint& pos, const wxSize& size, long style, const wxString& name,
105 int *attribList, const wxPalette& palette ):
106 wxWindow()
107 {
108 }
109
110 wxGLCanvas::~wxGLCanvas()
111 {
112 }
113
114 // Replaces wxWindow::Create functionality, since we need to use a different
115 // window class
116 bool wxGLCanvas::Create(wxWindow *parent,
117 wxWindowID id,
118 const wxPoint& pos,
119 const wxSize& size,
120 long style,
121 const wxString& name)
122 {
123 return false;
124 }
125
126 static void AdjustPFDForAttributes(PIXELFORMATDESCRIPTOR& pfd, int *attribList)
127 {
128 }
129
130 void wxGLCanvas::SetupPixelFormat(int *attribList) // (HDC hDC)
131 {
132 }
133
134 void wxGLCanvas::SetupPalette(const wxPalette& palette)
135 {
136 }
137
138 wxPalette wxGLCanvas::CreateDefaultPalette()
139 {
140 wxPalette palette;
141
142 return palette;
143 }
144
145 void wxGLCanvas::SwapBuffers()
146 {
147 }
148
149 void wxGLCanvas::OnSize(wxSizeEvent& WXUNUSED(event))
150 {
151 }
152
153 void wxGLCanvas::SetCurrent()
154 {
155 }
156
157 void wxGLCanvas::SetColour(const wxChar *colour)
158 {
159 }
160
161 void wxGLCanvas::OnQueryNewPalette(wxQueryNewPaletteEvent& event)
162 {
163 }
164
165 void wxGLCanvas::OnPaletteChanged(wxPaletteChangedEvent& event)
166 {
167 }
168
169 void glArrayElementEXT(GLint WXUNUSED(i))
170 {
171 }
172
173 void glColorPointerEXT(GLint WXUNUSED(size), GLenum WXUNUSED(type), GLsizei WXUNUSED(stride), GLsizei WXUNUSED(count), const GLvoid *WXUNUSED(pointer))
174 {
175 }
176
177 void glDrawArraysEXT(GLenum mode, GLint first, GLsizei count)
178 {
179 }
180
181 void glEdgeFlagPointerEXT(GLsizei WXUNUSED(stride), GLsizei WXUNUSED(count), const GLboolean *WXUNUSED(pointer))
182 {
183 }
184
185 void glGetPointervEXT(GLenum WXUNUSED(pname), GLvoid* *WXUNUSED(params))
186 {
187 }
188
189 void glIndexPointerEXT(GLenum WXUNUSED(type), GLsizei WXUNUSED(stride), GLsizei WXUNUSED(count), const GLvoid *WXUNUSED(pointer))
190 {
191 }
192
193 void glNormalPointerEXT(GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer)
194 {
195 }
196
197 void glTexCoordPointerEXT(GLint WXUNUSED(size), GLenum WXUNUSED(type), GLsizei WXUNUSED(stride), GLsizei WXUNUSED(count), const GLvoid *WXUNUSED(pointer))
198 {
199 }
200
201 void glVertexPointerEXT(GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer)
202 {
203 }
204
205 void glColorSubtableEXT(GLenum WXUNUSED(target), GLsizei WXUNUSED(start), GLsizei WXUNUSED(count), GLenum WXUNUSED(format), GLenum WXUNUSED(type), const GLvoid *WXUNUSED(table))
206 {
207 }
208
209 void glColorTableEXT(GLenum WXUNUSED(target), GLenum WXUNUSED(internalformat), GLsizei WXUNUSED(width), GLenum WXUNUSED(format), GLenum WXUNUSED(type), const GLvoid *WXUNUSED(table))
210 {
211 }
212
213 void glCopyColorTableEXT(GLenum WXUNUSED(target), GLenum WXUNUSED(internalformat), GLint WXUNUSED(x), GLint WXUNUSED(y), GLsizei WXUNUSED(width))
214 {
215 }
216
217 void glGetColorTableEXT(GLenum WXUNUSED(target), GLenum WXUNUSED(format), GLenum WXUNUSED(type), GLvoid *WXUNUSED(table))
218 {
219 }
220
221 void glGetColorTableParamaterfvEXT(GLenum WXUNUSED(target), GLenum WXUNUSED(pname), GLfloat *WXUNUSED(params))
222 {
223 }
224
225 void glGetColorTavleParameterivEXT(GLenum WXUNUSED(target), GLenum WXUNUSED(pname), GLint *WXUNUSED(params))
226 {
227 }
228
229 void glLockArraysSGI(GLint WXUNUSED(first), GLsizei WXUNUSED(count))
230 {
231 }
232
233 void glUnlockArraysSGI()
234 {
235 }
236
237
238 void glCullParameterdvSGI(GLenum WXUNUSED(pname), GLdouble* WXUNUSED(params))
239 {
240 }
241
242 void glCullParameterfvSGI(GLenum WXUNUSED(pname), GLfloat* WXUNUSED(params))
243 {
244 }
245
246 void glIndexFuncSGI(GLenum WXUNUSED(func), GLclampf WXUNUSED(ref))
247 {
248 }
249
250 void glIndexMaterialSGI(GLenum WXUNUSED(face), GLenum WXUNUSED(mode))
251 {
252 }
253
254 void glAddSwapHintRectWin(GLint WXUNUSED(x), GLint WXUNUSED(y), GLsizei WXUNUSED(width), GLsizei WXUNUSED(height))
255 {
256 }
257
258
259 //---------------------------------------------------------------------------
260 // wxGLApp
261 //---------------------------------------------------------------------------
262
263 IMPLEMENT_CLASS(wxGLApp, wxApp)
264
265 bool wxGLApp::InitGLVisual(int *attribList)
266 {
267 return false;
268 }
269
270 wxGLApp::~wxGLApp()
271 {
272 }
273
274 #endif
275 // wxUSE_GLCANVAS