Advertisement

Announcement: Beta code release

Started by March 03, 2007 09:11 AM
36 comments, last by Kazade 17 years, 6 months ago
First of all i'd like to say:

very very very nice work guys!

I am working on a Portable Game Engine for Win64 and Win32 atm and found some portability issues.
They're not critical but give ugly compiler warnings when compiling for WIN64.

The compiler complains about the OnKeyXXX(int ...) functions maybe you should change them to OnKeyXXX(WPARAM ...) .

this leads us to the nehekeydef.h:

the definitions have other values when using WPARAM (eg. NK_F1 = 112)

and last but not least in the neheWin32Window.cpp file you should replace

GWL_USERDATA with GWLP_USERDATA to avoid compiler errors when compiling for a WIN64 target.

that is about it and you're almost ready for 64bit ;-)

But besides this your new tuorial codes look very good.
The thing about keys on win32 is a known issue, the thing is that for the ascii keys all systems return the same value, but F1 is not an ascii key and therefore we need to add a translation matrix in there for each system, and for win32 that has not been done yet, but it's not that hard.
Advertisement
I knew there was something I meant to give feedback on;

// Really Nice Perspective CalculationsglHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST);


Get rid of this.
It is redundant and all vaguely modern hardware and drivers completely ignores it anyways.
I made a port of nehebeta to Lazarus/FPC. Currently only SDL window manager has been ported (Win32 and GLX will be ported later).

Download the sample code here
Hi,

I was just wondering if this code has been run on Vista in fullscreen mode?
I have tried running old NeHe basecodes on Vista, and found them to run fine in wondowed mode but in fullscreen just display a black screen!

Is this a known issue at all?

Hybrid
Is there an estimated time of completion? Winter or next Spring maybe?

Learn to make games with my SDL 2 Tutorials

Advertisement
We can't give you an exact date for completion because we all are rather busy at the moment, but due to the fact that we only have to fix some bugs in the code, add some more comments and review all the lesson texts I hope we'll release before next winter [wink]..
(Well.. apart form that we're having 2 inches of snow right now, thats why I wrote next winter..)

@Srki: The Lazarus/FPC port looks good and runs fine, but much slower than the C++ code, did you notice any speed losses? (Mandriva 2007, FPC 2.0.4)
I have tested FPC port only on Windows, and performance is nearly the same as original C++ code.

Maybe someone that has Linux could debug FPC port and find that slowdown.
Everything seems to work fine in both fullscreen and windowed mode on Vista 32-bit running on a nVidia 8800GTX card.
Sorry, I forgot to mention that. Yes, I was running the Win32 backend.

This topic is closed to new replies.

Advertisement