Message board for the users of flat assembler.
> Compiler Internals > fasm example mistake
While browsing through the fasm examples folder i came across a mistake.
This pertains to the opengl example.
It is within the WM_CREATE message handler in the window procedure.
This parameter is assigned to the wrong field.
It really should be this:
This field is no longer used, only earlier implementations of opengl used it.
Anyway, here's a snippet from msdn regarding the acceptable parameters.
BYTE iLayerType Specifies one of the following layer type values: PFD_MAIN_PLANE PFD_OVERLAY_PLANE PFD_UNDERLAY_PLANE
If anyone can have this corrected, that would be nice.
As of now i am writing my own opengl framework for fasm.
Being the hardened C/C++ graphics coder that i am, the opengl part will be easy, but learning the asm part is going to be the biggest challenge.
Who knows, maybe if my opengl framework is nice enough it will one day make it into the examples section.
Ok, thanks for your time.
PS: Thanks to all the guru's here who have helped with my noobish posts.
|28 Aug 2008, 08:01||
Hi Tomasz, i found another bug in the opengl example.
I had found this a while ago and fixed it in my sources,
but until today i forgot to mention anything about it...
import opengl,\ ... wglUseFontBitmapsA,'wglUseFontBitmapsA',\ wglUseFontOutlinesA,'wglUseFontOutlinesA',\ wglUseFontBitmapsW,'wglUseFontBitmapsW',\ wglUseFontOutlinesW,'wglUseFontOutlinesW',\ wglUseFontBitmaps,'wglUseFontBitmaps',\ wglUseFontOutlines,'wglUseFontOutlines',\ ...
Do you see it?
I fix it like this...
import opengl,\ ... wglUseFontBitmapsA,'wglUseFontBitmapsA',\ wglUseFontOutlinesA,'wglUseFontOutlinesA',\ wglUseFontBitmapsW,'wglUseFontBitmapsW',\ wglUseFontOutlinesW,'wglUseFontOutlinesW',\ ... api wglUseFontBitmaps,\ wglUseFontOutlines
The point being is that wglUseFontBitmaps and wglUseFontOutlines do not exist in opengl32.dll, only the A-W postfix variations do.
Coding a 3D game engine with fasm is like trying to eat an elephant,
you just have to keep focused and take it one 'byte' at a time.
|11 Apr 2009, 14:22||
< Last Thread | Next Thread >
Copyright © 1999-2020, Tomasz Grysztar. Also on YouTube, Twitter.
Website powered by rwasa.