where are namespaces defined

For people working on the C++ code.
Post Reply
User avatar
emugod
Member
Posts: 33
Joined: Tue Aug 13, 2013 19:49

where are namespaces defined

by emugod » Post

Where are namespaces defined? For example video:: ? Are they all over or is there generally one large collection? or are these subspaces of core::, or something? I've looked in all the places I could think they might be (primarily headers included in files where they're used), but haven't found any but irr::

User avatar
rubenwardy
Moderator
Posts: 6271
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: United Kingdom
Contact:

Re: where are namespaces defined

by rubenwardy » Post

video, core, io, scene are all sub namespaces in the irr namespace, supplied by the Irrlicht engine.

User avatar
emugod
Member
Posts: 33
Joined: Tue Aug 13, 2013 19:49

Re: where are namespaces defined

by emugod » Post

rubenwardy wrote:video, core, io, scene are all sub namespaces in the irr namespace, supplied by the Irrlicht engine.
ok, thanks. I'm looking through drawscene.cpp, you wouldn't happen to know where

Code: Select all

driver->setTransform(video::ETS_WORLD, core::IdentityMatrix);
these variables (video::ETS_WORLD and core::IdentityMatrix) are actually being manipulated, would you? I've searched around places I considered likely, with no results.

User avatar
rubenwardy
Moderator
Posts: 6271
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: United Kingdom
Contact:

Re: where are namespaces defined

by rubenwardy » Post

Ask on the Irrlicht forums.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest