Game Engine Dev
I dont want to pay for a engine so i decided to write one for myself, i was wondering if anyone could give me some advice on where to start, what key features would be needed, how to support both direct3d and opengl in different dlls so on and so forth, i am sure i am not the only one with these kind of questions.
I think an ''expert'' C++ programmer would know exactly what he would need for his own engine. What type of game do you have in mind?
You''ll always need the basics..rendering and input handling. But being an expert programmer, you probably knew that.
There have been countless topics on the fundamentals of a gaming engine. Use the search button.
You''ll always need the basics..rendering and input handling. But being an expert programmer, you probably knew that.
There have been countless topics on the fundamentals of a gaming engine. Use the search button.
Give him a break; I think he just meant he was experienced regarding the C++ language. Many posts are from people who don''t know a programming language well.
Anyway, sigma, there''s no need to use separate DLLs while you''re writing the Direct3D/OpenGL code, because it will just take longer to compile. So just keep them in separate .cpp files, it''s good enough. The way to do it is to create a common interface class, from which you derive the Direct3D and OpenGL wrapper classes. Of course, the disadvantage of supporting both APIs is you need to wrap everything, and since the two APIs don''t do things exactly alike, this means your methods have to be somewhat high-level. But I found writing a wrapper to support both was fun.
~CGameProgrammer( );
Anyway, sigma, there''s no need to use separate DLLs while you''re writing the Direct3D/OpenGL code, because it will just take longer to compile. So just keep them in separate .cpp files, it''s good enough. The way to do it is to create a common interface class, from which you derive the Direct3D and OpenGL wrapper classes. Of course, the disadvantage of supporting both APIs is you need to wrap everything, and since the two APIs don''t do things exactly alike, this means your methods have to be somewhat high-level. But I found writing a wrapper to support both was fun.
~CGameProgrammer( );
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement