Search found 41 matches

by twentytortures
Wed Apr 18, 2007 3:50 pm
Forum: Beginners Help
Topic: Some simple organization questions.
Replies: 22
Views: 1067

Lol, didn't even think to try that. Even after binky told me how it works too. Thanks!
by twentytortures
Tue Apr 17, 2007 5:23 pm
Forum: Beginners Help
Topic: Some simple organization questions.
Replies: 22
Views: 1067

Thanks for all the help, I'm understanding pointers and things better now. I've been able to pass almost everything I want into functions now. I just have one thing that I'm having problems with. I want this code in a function: video::IVideoDriver* driver = device->getVideoDriver(); I declare my fun...
by twentytortures
Mon Apr 16, 2007 4:22 pm
Forum: Beginners Help
Topic: Some Linux Questions :)
Replies: 8
Views: 386

Don't use the codeblocks template, I think it's windows only. You'll have to set up the project by yourself, don't worry it's not too hard. If you want step by step instructions how to do so, let me know.
by twentytortures
Mon Apr 16, 2007 4:18 pm
Forum: Beginners Help
Topic: Some simple organization questions.
Replies: 22
Views: 1067

I usually like to pass data into variables by using a '&' pointer like this: void someFunction(int &a) { a = 2; } Rather than do it this way: int someFunction() { int a; a = 2; return a; } But irrlicht objects are declared using the '*' pointer, does this still work the same way? I.e. would ...
by twentytortures
Mon Apr 16, 2007 4:14 pm
Forum: Beginners Help
Topic: This error is driving me nuts
Replies: 13
Views: 488

Thanks very much! I didn't realize it worked that way. I'm not used to compiling things in projects, I usually just have a bunch of files.
by twentytortures
Mon Apr 16, 2007 12:30 am
Forum: Beginners Help
Topic: Some simple organization questions.
Replies: 22
Views: 1067

It's kind of hard for me to describe. Do you know of any examples that shows something like example 4 organized into separate functions?
by twentytortures
Sun Apr 15, 2007 11:58 pm
Forum: Beginners Help
Topic: Some simple organization questions.
Replies: 22
Views: 1067

Some simple organization questions.

So I'm still pretty new to C++ and have a few questions. I don't like how all the irrlicht examples are organized. I prefer to have my projects broken up into different functions and files. When trying to do this to some irrlicht examples I have problems when trying to pass variables into functions....
by twentytortures
Sun Apr 15, 2007 11:54 pm
Forum: Beginners Help
Topic: Some Linux Questions :)
Replies: 8
Views: 386

I just keep all my irrlicht stuff in my home directory and add the home/irrlicht folders into my directory search. You have to make sure you link all the correct things, the link commands can be found in a Makefile in an example directory.
by twentytortures
Sun Apr 15, 2007 11:51 pm
Forum: Beginners Help
Topic: This error is driving me nuts
Replies: 13
Views: 488

There are only two .cpp files and only one of those files has declares for my variables. They are definitely only declared once. The file is still #included in my main.cpp but I only get errors when I add it as part of my codeblocks project. If it was an error with the code, wouldn't I still get the...
by twentytortures
Sat Apr 14, 2007 6:57 pm
Forum: Beginners Help
Topic: This error is driving me nuts
Replies: 13
Views: 488

Sorry it took so long for me to post this, I just don't have much time between school and work. I finally had some time to play with it. The code is now organized in two files, main.cpp and myReceiver.cpp. I'm still getting the same error. Here's something strange though, I got it to work. I'm using...
by twentytortures
Tue Apr 10, 2007 5:07 pm
Forum: Beginners Help
Topic: irrlicht 1.3 and linux, plus other questions :p
Replies: 7
Views: 431

I like png because it has a high compression and still supports alpha channels and has great quality.

As for model type, I'm just now getting back into irrlicht and I heard it supports collada now, so you might try that.
by twentytortures
Tue Apr 10, 2007 4:53 pm
Forum: Beginners Help
Topic: This error is driving me nuts
Replies: 13
Views: 488

I only did the extern in event.cpp and I already found that page, but thanks anyways. I'm seriously thinking it has something to do with the file being named event. I'll try naming it something else when I get home. Like i said before, it compiles fine if I put all the code in main.cpp.
by twentytortures
Tue Apr 10, 2007 4:24 pm
Forum: Beginners Help
Topic: This error is driving me nuts
Replies: 13
Views: 488

I've tried making them extern but it's of no use. The reason device is set to 0 is because it won't compile if I don't. I get an error saying "device not declared in this scope" because the variable is declared in main.cpp but is used in event.cpp. I'll post the contents of main.cpp when I...
by twentytortures
Tue Apr 10, 2007 4:58 am
Forum: Beginners Help
Topic: This error is driving me nuts
Replies: 13
Views: 488

#include <irrlicht.h> using namespace irr; IrrlichtDevice* device = 0; core::position2d<s32> click = core::position2d<s32>(0,0); class MyEventReceiver : public IEventReceiver { public: virtual bool OnEvent(SEvent event) { if (event.EventType == irr::EET_KEY_INPUT_EVENT&& !event.KeyInput.Pre...
by twentytortures
Tue Apr 10, 2007 3:59 am
Forum: Beginners Help
Topic: This error is driving me nuts
Replies: 13
Views: 488

This error is driving me nuts

When compiling I get this error: obj/Debug/main.o: In function `irrAllocator': /home/mike/irrlicht/include/irrAllocator.h:26: multiple definition of `device' obj/Debug/event.o:/home/mike/projects/irrtemp/event.cpp:13: first defined here obj/Debug/main.o: In function `irrAllocator': /home/mike/irrlic...