excuse my ignorance, piece of code in hello world

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
BoorishId
Posts: 10
Joined: Mon Apr 18, 2005 8:52 am

excuse my ignorance, piece of code in hello world

Post by BoorishId »

Code: Select all

IrrlichtDevice *device;
	device=createDevice(EDT_DIRECTX9, dimension2d<s32>(1024, 768), 16,false, false, false, 0);

&&

	guienv->addStaticText(L"HelloWorld! Testing models", rect<int>(10,10,200,22),true);
I pretty much understand everything going on in this example code but i have no idea what the pieces dimensions2d<s32> and rect<int> mean. Int is a primative and s32 is some sord of type, is the <s3d> just a way of casting what the functions return in C++. I just dont understand the <type> syntax is this a c++ feature, never sean it in any c code before.
Guest

Post by Guest »

Do a little research on templates, a good place is
MSDN online and the STL section.
Post Reply