]> git.saurik.com Git - wxWidgets.git/blame - src/palmos/glcanvas.cpp
Doc tweaks
[wxWidgets.git] / src / palmos / glcanvas.cpp
CommitLineData
ffecfa5a
JS
1/////////////////////////////////////////////////////////////////////////////
2// Name: src/palmos/glcanvas.cpp
3// Purpose: wxGLCanvas, for using OpenGL with wxWidgets
e2731512 4// Author: William Osborne - minimal working wxPalmOS port
ffecfa5a
JS
5// Modified by:
6// Created: 10/13/04
e2731512 7// RCS-ID: $Id$
ffecfa5a
JS
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"
36WX_CHECK_BUILD_OPTIONS("wxGL")
37
38#include "wx/glcanvas.h"
39
40static const wxChar *wxGLCanvasClassName = wxT("wxGLCanvasClass");
41static const wxChar *wxGLCanvasClassNameNoRedraw = wxT("wxGLCanvasClassNR");
42
43LRESULT WXDLLEXPORT APIENTRY _EXPORT wxWndProc(HWND hWnd, UINT message,
44 WPARAM wParam, LPARAM lParam);
45
46/*
47 * GLContext implementation
48 */
49
50wxGLContext::wxGLContext(bool WXUNUSED(isRGB), wxGLCanvas *win, const wxPalette& WXUNUSED(palette))
51{
52}
53
54wxGLContext::wxGLContext(
55 bool WXUNUSED(isRGB), wxGLCanvas *win,
56 const wxPalette& WXUNUSED(palette),
57 const wxGLContext *other /* for sharing display lists */
58 )
59{
60}
61
62wxGLContext::~wxGLContext()
63{
64}
65
66void wxGLContext::SwapBuffers()
67{
68}
69
70void wxGLContext::SetCurrent()
71{
72}
73
74void wxGLContext::SetColour(const wxChar *colour)
75{
76}
77
78
79/*
80 * wxGLCanvas implementation
81 */
82
83IMPLEMENT_CLASS(wxGLCanvas, wxWindow)
84
85BEGIN_EVENT_TABLE(wxGLCanvas, wxWindow)
86 EVT_SIZE(wxGLCanvas::OnSize)
87 EVT_PALETTE_CHANGED(wxGLCanvas::OnPaletteChanged)
88 EVT_QUERY_NEW_PALETTE(wxGLCanvas::OnQueryNewPalette)
89END_EVENT_TABLE()
90
91wxGLCanvas::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
97wxGLCanvas::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
107wxGLCanvas::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
114wxGLCanvas::~wxGLCanvas()
115{
116}
117
118// Replaces wxWindow::Create functionality, since we need to use a different
119// window class
120bool 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
130static void AdjustPFDForAttributes(PIXELFORMATDESCRIPTOR& pfd, int *attribList)
131{
132}
133
134void wxGLCanvas::SetupPixelFormat(int *attribList) // (HDC hDC)
135{
136}
137
138void wxGLCanvas::SetupPalette(const wxPalette& palette)
139{
140}
141
142wxPalette wxGLCanvas::CreateDefaultPalette()
143{
144 wxPalette palette;
145
146 return palette;
147}
148
149void wxGLCanvas::SwapBuffers()
150{
151}
152
153void wxGLCanvas::OnSize(wxSizeEvent& WXUNUSED(event))
154{
155}
156
157void wxGLCanvas::SetCurrent()
158{
159}
160
161void wxGLCanvas::SetColour(const wxChar *colour)
162{
163}
164
165void wxGLCanvas::OnQueryNewPalette(wxQueryNewPaletteEvent& event)
166{
167}
168
169void wxGLCanvas::OnPaletteChanged(wxPaletteChangedEvent& event)
170{
171}
172
173void glArrayElementEXT(GLint WXUNUSED(i))
174{
175}
176
177void glColorPointerEXT(GLint WXUNUSED(size), GLenum WXUNUSED(type), GLsizei WXUNUSED(stride), GLsizei WXUNUSED(count), const GLvoid *WXUNUSED(pointer))
178{
179}
180
181void glDrawArraysEXT(GLenum mode, GLint first, GLsizei count)
182{
183}
184
185void glEdgeFlagPointerEXT(GLsizei WXUNUSED(stride), GLsizei WXUNUSED(count), const GLboolean *WXUNUSED(pointer))
186{
187}
188
189void glGetPointervEXT(GLenum WXUNUSED(pname), GLvoid* *WXUNUSED(params))
190{
191}
192
193void glIndexPointerEXT(GLenum WXUNUSED(type), GLsizei WXUNUSED(stride), GLsizei WXUNUSED(count), const GLvoid *WXUNUSED(pointer))
194{
195}
196
197void glNormalPointerEXT(GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer)
198{
199}
200
201void glTexCoordPointerEXT(GLint WXUNUSED(size), GLenum WXUNUSED(type), GLsizei WXUNUSED(stride), GLsizei WXUNUSED(count), const GLvoid *WXUNUSED(pointer))
202{
203}
204
205void glVertexPointerEXT(GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer)
206{
207}
208
209void glColorSubtableEXT(GLenum WXUNUSED(target), GLsizei WXUNUSED(start), GLsizei WXUNUSED(count), GLenum WXUNUSED(format), GLenum WXUNUSED(type), const GLvoid *WXUNUSED(table))
210{
211}
212
213void glColorTableEXT(GLenum WXUNUSED(target), GLenum WXUNUSED(internalformat), GLsizei WXUNUSED(width), GLenum WXUNUSED(format), GLenum WXUNUSED(type), const GLvoid *WXUNUSED(table))
214{
215}
216
217void glCopyColorTableEXT(GLenum WXUNUSED(target), GLenum WXUNUSED(internalformat), GLint WXUNUSED(x), GLint WXUNUSED(y), GLsizei WXUNUSED(width))
218{
219}
220
221void glGetColorTableEXT(GLenum WXUNUSED(target), GLenum WXUNUSED(format), GLenum WXUNUSED(type), GLvoid *WXUNUSED(table))
222{
223}
224
225void glGetColorTableParamaterfvEXT(GLenum WXUNUSED(target), GLenum WXUNUSED(pname), GLfloat *WXUNUSED(params))
226{
227}
228
229void glGetColorTavleParameterivEXT(GLenum WXUNUSED(target), GLenum WXUNUSED(pname), GLint *WXUNUSED(params))
230{
231}
232
233void glLockArraysSGI(GLint WXUNUSED(first), GLsizei WXUNUSED(count))
234{
235}
236
237void glUnlockArraysSGI()
238{
239}
240
241
242void glCullParameterdvSGI(GLenum WXUNUSED(pname), GLdouble* WXUNUSED(params))
243{
244}
245
246void glCullParameterfvSGI(GLenum WXUNUSED(pname), GLfloat* WXUNUSED(params))
247{
248}
249
250void glIndexFuncSGI(GLenum WXUNUSED(func), GLclampf WXUNUSED(ref))
251{
252}
253
254void glIndexMaterialSGI(GLenum WXUNUSED(face), GLenum WXUNUSED(mode))
255{
256}
257
258void glAddSwapHintRectWin(GLint WXUNUSED(x), GLint WXUNUSED(y), GLsizei WXUNUSED(width), GLsizei WXUNUSED(height))
259{
260}
261
262
263//---------------------------------------------------------------------------
264// wxGLApp
265//---------------------------------------------------------------------------
266
267IMPLEMENT_CLASS(wxGLApp, wxApp)
268
269bool wxGLApp::InitGLVisual(int *attribList)
270{
271 return false;
272}
273
274wxGLApp::~wxGLApp()
275{
276}
277
278#endif
279 // wxUSE_GLCANVAS