I found the problem:
If (hWnd = OpenWindow(0, 0, 0, 320, 240, #WINDOWSETTINGS, "OpenGL Test")) = 0
MessageRequester("Error", "Could not create window.", 0)
End
EndIf
When I changed it to this, it all worked fine:
hWnd = OpenWindow(0, 0, 0, 320, 240, #WINDOWSETTINGS, "OpenGL Test")
If ...
Search found 8 matches
- Wed Jun 16, 2004 2:52 pm
- Forum: Coding Questions
- Topic: Wierd OpenGL Problems
- Replies: 3
- Views: 1227
- Tue Jun 15, 2004 7:21 pm
- Forum: Coding Questions
- Topic: Wierd OpenGL Problems
- Replies: 3
- Views: 1227
- Tue Jun 15, 2004 2:34 am
- Forum: Coding Questions
- Topic: Wierd OpenGL Problems
- Replies: 3
- Views: 1227
Wierd OpenGL Problems
Instead of starting in a window, the entire screen goes black as if its in fullscreen. Is it my code, or a bug? (Im using a userlib that allows me to pass floats into glDepth and glPerspective, forgot the name)
;-----------------------
;-OpenGL Test-----
;-Raine3D ...
;-----------------------
;-OpenGL Test-----
;-Raine3D ...
- Sun Apr 04, 2004 7:13 pm
- Forum: Coding Questions
- Topic: OpenGL Hell
- Replies: 4
- Views: 1598
OpenGL Hell
I noticed, some lines in c++ wont translate into PB (Notably the ones containing GLfloat or f)
------------------
C++ Code
gluPerspective(45.0f,(GLfloat)width/(GLfloat)height,0.1f,100.0f);
PB Code
gluPerspective_(45.0, width / height, 0.1, 100.0)
-----------------Also This:
C ...
------------------
C++ Code
gluPerspective(45.0f,(GLfloat)width/(GLfloat)height,0.1f,100.0f);
PB Code
gluPerspective_(45.0, width / height, 0.1, 100.0)
-----------------Also This:
C ...
- Sun Apr 04, 2004 7:04 pm
- Forum: Coding Questions
- Topic: 2D Drawing Commands, Wont Work With Random() ?
- Replies: 2
- Views: 1236
- Sun Apr 04, 2004 6:26 am
- Forum: Coding Questions
- Topic: 2D Drawing Commands, Wont Work With Random() ?
- Replies: 2
- Views: 1236
2D Drawing Commands, Wont Work With Random() ?
Whenever I try to use Random() in any 2D drawing command, nothing happens. However when I replace it with a normal number, it works fine. I dont think its my code, but I'll post a short test snippet anyways.
#Window = 0
Width.w = GetSystemMetrics_(SM_CXFullScreen)
Height.w = GetSystemMetrics_(SM ...
#Window = 0
Width.w = GetSystemMetrics_(SM_CXFullScreen)
Height.w = GetSystemMetrics_(SM ...
- Wed Oct 08, 2003 2:59 am
- Forum: General Discussion
- Topic: Launching Programs in Gadgets
- Replies: 3
- Views: 1532
- Tue Oct 07, 2003 12:40 am
- Forum: General Discussion
- Topic: Launching Programs in Gadgets
- Replies: 3
- Views: 1532
Launching Programs in Gadgets
Is there a way I could start a program in a specified window?