Author Topic: OpenGl Test Game  (Read 3193 times)

0 Members and 1 Guest are viewing this topic.

Peter

  • Guest
OpenGl Test Game
« on: April 12, 2013, 11:00:17 AM »
Deleted
« Last Edit: April 12, 2015, 02:17:22 AM by Peter »

Frankolinox

  • Guest
Re: OpenGl Test Game
« Reply #1 on: April 13, 2013, 12:34:35 AM »
1) short question peter: what happened with your "gl.dll" where you have had some problems some days ago? do you have solved this loading library problem of find another "gl.dll"?

2) isn't there your usual "sw.inc" missing for your last game example above? I've got an execution error ("gxo2.exe") cannot run that game, sorry.

frank
« Last Edit: April 13, 2013, 02:46:47 AM by Frankolinox »

Charles Pegge

  • Guest
Re: OpenGl Test Game
« Reply #2 on: April 13, 2013, 02:05:44 AM »
Hi Peter,

I'm getting blank white screens on your last few demos, something wrong with swapping buffers?

No problem with your earlier libraries. I am a fan of bird shoot. (Much to be preferred than doing it to real birds.)

Aurel

  • Guest
Re: OpenGl Test Game
« Reply #3 on: April 13, 2013, 02:50:15 AM »
I use latest oxygen.dll from Charles update
both programs compile okay...but when i run programs it simply crush ::)

Aurel

  • Guest
Re: OpenGl Test Game
« Reply #4 on: April 13, 2013, 05:09:02 AM »
Peter...
i download your Gamedemo.zip
i see that you use  oxygen.dll (416kB) and latest dll is 455kB ,so it is not same dll ,right'
sorry but still just crush when i run program...maybe is really problem in dll  ???

Charles Pegge

  • Guest
Re: OpenGl Test Game
« Reply #5 on: April 13, 2013, 05:29:18 AM »
Hi Peter, Still no joy I'm afraid, both compiled demos have white screens. Which Windows are you using?. Mine is Vista.

Charles Pegge

  • Guest
Re: OpenGl Test Game
« Reply #6 on: April 13, 2013, 05:46:46 AM »
I'm still willing to look at your source code in private, Peter. If there problems arising from your binding techniques, I might be able to fix them on the compiler side, or at least trap errors more effectively.

Charles Pegge

  • Guest
Re: OpenGl Test Game
« Reply #7 on: April 13, 2013, 06:11:29 AM »
Sure.

You can use single name format as well. To test for binding failures at run-time, error returns at list of errors and clears itself.

li=LoadLibrary "kernel32.dll"

bind li
{
 Sleep
 GetCommandLineA
}

sleep 1000

print error


But bugs are usually subtle and well hidden, as we all know :)

Frankolinox

  • Guest
Re: critics & OpenGl Test Game
« Reply #8 on: April 13, 2013, 07:02:15 AM »
@peter: yellow card (from soccer) for you!

http://www.oxygenbasic.org/forum/index.php?topic=673.0

Quote
what happened with your "gl.dll" where you have had some problems some days ago?

I never had problems. What do you want !

first thing peter, I don't like your bad tongue! ;(

if I am friendly with asking so I wanted to have a same-level friendly answer. You are not "JRS", who has every day bad mood or nearly every day...

next time I won't ask you anything. you have had any problems with "DLL Allergy" and myself I wanted only to help.
so the question was quite correct.

If this forum isn't able to respect every (few) person they are active at the board and wanted to push oxygen to a good basic language here on the forum and give more shelter and respect for persons I am quit here very soon. I think you are an adult person so you have no problem with that one, isnt it?

I have studied too and I hope you can see that here are different people at the board and they like oxygen (I hope so) and are working on it. I need not to help you. If you get some critics so you must handle it like a "profi" and don't be upset and unpolite. that's the right way for another guy here ;)

best regards, frank

JRS

  • Guest
Re: OpenGl Test Game
« Reply #9 on: April 13, 2013, 08:04:21 AM »
Quote
I don't think so, he says the truth and this sounds like impolite.

Thank you Peter.

You may not like what I have to say but I'm not going to lie to you either. If I'm wrong, I'm the first to admit it and will apologize for the error.





Charles Pegge

  • Guest
Re: OpenGl Test Game
« Reply #10 on: April 13, 2013, 09:13:20 AM »
Hi Peter,

Yes those declaration should be okay, though strictly speeking, glViewport uses ints.

Here are the standard primitives used in Opengl

typedef unsigned int GLenum;
typedef unsigned char GLboolean;
typedef unsigned int GLbitfield;
typedef signed char GLbyte;
typedef short GLshort;
typedef int GLint;
typedef int GLsizei;
typedef unsigned char GLubyte;
typedef unsigned short GLushort;
typedef unsigned int GLuint;
typedef float GLfloat;
typedef float GLclampf;
typedef double GLdouble;
typedef double GLclampd;
typedef void GLvoid;

GLbyte and GLubyte can cause problems, so we have to override them to be byte, when not dealing with char strings.

Oxygen bytes are currently unsigned.