• Advertisement
Sign in to follow this  

Try to write a Game engine

This topic is 1866 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am going to write a 2D game engine based on OpenGL, is now complete one part, but encounter many problems, I hope everyone can give some advice.The whole project source code and some examples here.
[url="https://sourceforge.net/projects/xeffect2d/"]https://sourceforge.net/projects/xeffect2d/[/url]

Share this post


Link to post
Share on other sites
Advertisement
I want to check memory error with [Rational Purify].
But test program will exit when started.
The [Rational Purify] prompted the following information:
[I] Starting Purify'd SDL_Test.exe at 2012-11-22 17:55:00
[I] Starting main
[W] PAR: GetKeyboardLayoutNameA. Length of the memory addressed by pointer is too small.... {1 occurrence}
[I] Message: SetWindowsHookEx(0x0) may not function as expected when you...
[I] MAF: Memory allocation failure of 65536 bytes in VirtualAlloc {1 occurrence}
[I] Summary of all memory leaks... {16176 bytes, 20 blocks}
[W] PAR: VirtualFree(0x7ff40000, 0x0, 0x8000) arg #1 (lpAddress) not within reserved or committed region. {1 occurrence}
[I] Exiting with code 3 (0x00000003)
[I] Program terminated at 2012-11-22 17:55:09
I do not know why. Is Rational Purify set incorrectly?

Share this post


Link to post
Share on other sites
The new version (1.0.1245) has been uploaded.Modify some bugs.
A new example (examplePhysics.zip), this example for demonstration collision detection and physical simulation. (press 's' key to put an object, press 'd' key to start the simulation, simulation stop if an error occurs)
exampleFish (bin). zip: a complete example of using the 1080p resolution, demonstrates the shader.
exampleGemGame.zip: a complete game with 720p resolution.
exampleControl.zip: example demonstrates various functions, including control, video playback, audio, sequence frame, guide curves. Edited by xiajia

Share this post


Link to post
Share on other sites
[quote name='xiajia' timestamp='1353578286' post='5003186']
I want to check memory error with [Rational Purify].
But test program will exit when started.
The [Rational Purify] prompted the following information:
[I] Starting Purify'd SDL_Test.exe at 2012-11-22 17:55:00
[I] Starting main
[W] PAR: GetKeyboardLayoutNameA. Length of the memory addressed by pointer is too small.... {1 occurrence}
[I] Message: SetWindowsHookEx(0x0) may not function as expected when you...
[I] MAF: Memory allocation failure of 65536 bytes in VirtualAlloc {1 occurrence}
[I] Summary of all memory leaks... {16176 bytes, 20 blocks}
[W] PAR: VirtualFree(0x7ff40000, 0x0, 0x8000) arg #1 (lpAddress) not within reserved or committed region. {1 occurrence}
[I] Exiting with code 3 (0x00000003)
[I] Program terminated at 2012-11-22 17:55:09
I do not know why. Is Rational Purify set incorrectly?
[/quote]
If you want help on this, make another topic in which the name of the topic clearly indicates the classification of the troubles you are having.
The people who can help with this type of issue are not going to look for such issues inside a topic called “Try to write a Game engine”.


L. Spiro

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement