Hello,
I am new to these forums and I am looking for help using this engine with C#. I have seen the demo of the 2D but it doesn't seem to open on Visual C# 2005, how would I got about making it so I can use it?
2D in C#
-
- Posts: 7
- Joined: Thu Dec 07, 2006 4:42 am
- Location: United States
The example in the example.NET folder for Irllicht 1.2 works fine but you have to change this line...
...to the location of the irrlicht media folder. For example:
I don't know why i have to use double slashes but it works. Also this directory might not work for you so just check where your media file is and right click for properties and its in the general tab. This is for Windows BTW. One last thing make sure you put the slashes at the end of media or it will not get the images.
-The Ox Man
Code: Select all
[C#]
string path = string.Empty;
Code: Select all
[C#]
string path = "C:\\Documents and Settings\\PC\\Desktop\\irrlicht-1.2\\media\\";
-The Ox Man
Backslashes are interpreted as escape characters, such as \n for newline. In order to store an actual blackslash in a string you can either escape it (use double) or the following:
Code: Select all
string StringMe = @"\path\pathSub\HereItIs";
-
- Posts: 7
- Joined: Thu Dec 07, 2006 4:42 am
- Location: United States