Oxygen Basic

Programming => Problems & Solutions => Topic started by: Peter on April 16, 2013, 05:06:11 AM

Title: OpenGl Runs
Post by: Peter on April 16, 2013, 05:06:11 AM
deleted
Title: Re: OpenGl Runs
Post by: Charles Pegge on April 16, 2013, 09:00:45 AM
Hi Peter,

still blank white unfortunately. Do you have a colored background? If so, then that would indicate a problem with the render context or buffer swapping. Something fundamental anyway.
Title: Re: OpenGl Runs
Post by: Charles Pegge on April 16, 2013, 12:57:00 PM
It's not a gpf or a lockup. It just does't put anything into the client area except for white. For some reason, Opengl has not engaged. Normally you get at least a black or transparent screen in the early stages.

I have a standard piece of code called OpenglScenFrame.inc, which I use on a number of demos. It has all the essential steps.

Do you use the standard ChoosePixelFormat? If there is a problem here, it could cause incompatibilities.

X
Title: Re: OpenGl Runs
Post by: Frankolinox on April 18, 2013, 01:30:56 AM
http://www.oxygenbasic.org/forum/index.php?topic=687.0

my example with openGL and "OpenglScenFrame.inc" are all working here well. may be it's worthful to expand this library too.

best regards, frank
Title: Re: OpenGl Runs
Post by: Charles Pegge on April 18, 2013, 02:35:54 AM
Hi Frank, Got your rotating pyramid and also drag-and-drop so far. I'll get to the crate examples ASAP.

A combination of dragandDrop and Opengl Sceenes would offer great possibilities.