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