Search found 12 matches

by Cppuser
Thu Nov 23, 2006 3:52 pm
Forum: Beginners Help
Topic: understanding of Material
Replies: 1
Views: 154

understanding of Material

Hi, sorry for stupid questions but i would like to confirm if i've really understand some things correctly in the engine. Does the SMaterial structure manages all the samplerstates for each texturestage and keeps all other needed texture properties in it? e. g If i wan't to use an iron texture,i wil...
by Cppuser
Thu Nov 16, 2006 11:16 pm
Forum: Beginners Help
Topic: Why so many structures instead classes?
Replies: 10
Views: 517

I didn't say that was a good reason. You know, unless those are the last 6 bytes of storage on your hard drive, and Alyson Hannigan has just given you her phone number and you need to write it down somewhere. Then you'd be glad you used a struct. Very funny. You don't have to held account for somet...
by Cppuser
Tue Nov 14, 2006 7:36 pm
Forum: Beginners Help
Topic: Why so many structures instead classes?
Replies: 10
Views: 517

Why so many structures instead classes?

Hi,

is there a reason why using a structure for Vertex?
Why not using a class for Vertex?

Is there a technical reason or is it just design style of the coder?
Same for Materialstructure.

thx
by Cppuser
Fri Sep 29, 2006 5:34 pm
Forum: Beginners Help
Topic: static libs vs DLLs
Replies: 6
Views: 436

Acki wrote: The main reason I'm using static libs is, because they are a little bit faster
On which situation?
by Cppuser
Fri Sep 29, 2006 9:59 am
Forum: Beginners Help
Topic: CNullDriver
Replies: 19
Views: 741

Thx vitek, my problem was that i only saw the empty methods in CNullDriver last night. That's why i didn't understand what everybody is trying to explain me. But after a detailed look in he morning 've seen that i was blind. ;) And you confirmed my question in my last posting ... Why does all of thi...
by Cppuser
Fri Sep 29, 2006 8:20 am
Forum: Beginners Help
Topic: CNullDriver
Replies: 19
Views: 741

Ok,maybee i got it now.

Some of the functionality is called by all the drivers in NullDriver.
Because some of the methods contains little stuff that all drivers need the same way.

Is that the reason why nulldriver class exists?
by Cppuser
Fri Sep 29, 2006 8:00 am
Forum: Beginners Help
Topic: CNullDriver
Replies: 19
Views: 741

No you do not need to implement them again if a superclass already implements them (and they are declared virtual). BUT THEY ARE implemented again and again ... Have a look at the DirectX.cpp and opengl.cpp files. And you will see that they all have a function body with driverdependent code ... So,...
by Cppuser
Thu Sep 28, 2006 10:37 pm
Forum: Beginners Help
Topic: CNullDriver
Replies: 19
Views: 741

Sorry,i don't understand why the dependency to CNullDriver is necessary.

And why do you speak about duplicates? The interface methods must exist in every driver so you have to write the functionbodies for each driver either ...

Anyway thx for trying to explain i really don't understand it ...
by Cppuser
Thu Sep 28, 2006 10:11 pm
Forum: Beginners Help
Topic: CNullDriver
Replies: 19
Views: 741

Because you then had to write the same code in the opengl driver and the software drivers. Why write the same code four times, when a single time suffices? ??? But the code is already written in DirectX.cpp files in OpenGL.cpp etc.. So the virtual prototypes of IVideoDriver can get their bodies fro...
by Cppuser
Thu Sep 28, 2006 9:58 pm
Forum: Beginners Help
Topic: CNullDriver
Replies: 19
Views: 741

Well, why it's not enough in the CD3D9Driver.cpp then?

Why having the methods in CNullDriver.cpp and additionally in CD3D9Driver.cpp ?

I don't get it ...
by Cppuser
Thu Sep 28, 2006 9:43 pm
Forum: Beginners Help
Topic: CNullDriver
Replies: 19
Views: 741

CNullDriver does the generic part of the implementation of the IVideoDriver interface. Else this interface had to be implemented inside a header
But why is the generic part in CD3D9Driver.cpp not enough?

Because not every VideoDriver supports all the IVideoDriver methods?
by Cppuser
Thu Sep 28, 2006 8:48 pm
Forum: Beginners Help
Topic: CNullDriver
Replies: 19
Views: 741

CNullDriver

Hi, i'm trying to understand the code and ideas of implementations behind the irrlicht project. I didn't really understand why the Videodriverclasses like CD3D9Driver is derived from CNullDriver. What is the idea behind CNullDriver? Why is it not enough deriving from IVideoDriver? Like CD3D9Driver :...