🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Our first Main.cpp

Published December 28, 2005
Advertisement
Hi everyone, I'm a little hurried, so I will just write here our first main.cpp =D

We can already create some windows and show...

If you are following the previous days, check how simple is the code:

#include "PStructs.h"#include "PDevice.h"int main(){  PDevice* MainApplication= new PDevice(vdOpenGL);   MainApplication->CreateNewWindow("MyWindow", new SRect(0, 100, 500, 500));  MainApplication->Show("MyWindow");	  while (MainApplication->Running())  {    MainApplication->Refresh();  }  delete(MainApplication);	  return 0;}


When we create a PDevice instance, we pass by parameter, the type of API we want to use. In this case, is OpenGL..

Well...tomorrow I'll show the first "visual" version of our engine, with what we have until now..

See ya..
0 likes 2 comments

Comments

HopeDagger
Nice. Sorry if you mentioned it prior already, but what APIs will the engine support aside from OpenGL? I've yet to see a 2D engine that makes use of a bunch of different renderers (OpenGL, Direct3D, SDL, etc) for more flexibility.

Also, are you planning to go open-source with this? Or release the engine? :)
December 28, 2005 10:27 AM
Kerkhoff
Hi...

for while...I pretend implement just the OpenGL and DirectX support...

and...about free source...I think that I'm quite novice in game programming to make something that deserve to be paid...=D

And more...I count with everyone to help me in build this engine :)

Thanx...

December 28, 2005 11:03 PM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Profile
Author
Advertisement

Latest Entries

Another Demo

1126 views

Link resolved....

1177 views

Update....

1150 views

Let's play... = )

1104 views

A little doubt

955 views

PLayer

991 views
Advertisement