Irrlicht data types
Irrlicht data types
Irrlicht data types are so handy. I can't imagine programming c++ without them.
s = singed, u = unsigned, d = double, f float and c = char. Then add byte amount.
I wonder if other libraries include them. In fact, I wonder if irrlicht can submit these data types to IEEE to get them into a future iteration of a c++ standard.
I wouldn't be surprised if they're in boost libraries or simliar.
s = singed, u = unsigned, d = double, f float and c = char. Then add byte amount.
I wonder if other libraries include them. In fact, I wonder if irrlicht can submit these data types to IEEE to get them into a future iteration of a c++ standard.
I wouldn't be surprised if they're in boost libraries or simliar.
-
- Posts: 1186
- Joined: Fri Dec 29, 2006 12:04 am
that's not the same thing
i think I'll get bored of writing
uint32_t
instead of
u32.
I used to include <irrTypes.h> in all my programs. Also in programs that don't uses irrlicht.
also the float
f32 is usefull. is hard mistyping it.
while when you write"float"
sometimes happens that you write "falot" "flaot" ecc.
i think I'll get bored of writing
uint32_t
instead of
u32.
I used to include <irrTypes.h> in all my programs. Also in programs that don't uses irrlicht.
also the float
f32 is usefull. is hard mistyping it.
while when you write"float"
sometimes happens that you write "falot" "flaot" ecc.
Junior Irrlicht Developer.
Real value in social networks is not about "increasing" number of followers, but about getting in touch with Amazing people.
- by Me
Real value in social networks is not about "increasing" number of followers, but about getting in touch with Amazing people.
- by Me
-
- Posts: 1186
- Joined: Fri Dec 29, 2006 12:04 am
Well, since the using namespace directive is evil, it would beREDDemon wrote:i think I'll get bored of writing
uint32_t
instead of
u32.
Code: Select all
irr::u32
"Whoops..."
-
- Posts: 1215
- Joined: Tue Jan 09, 2007 7:03 pm
- Location: Leuven, Belgium
But writing using irr::u32; would save typing the long run. Though I simply just use namespace irr; in all my headers anyway. The "probably not" is simply a coding suggestion.randomMesh wrote:Well, since the using namespace directive is evil, it would beREDDemon wrote:i think I'll get bored of writing
uint32_t
instead of
u32.So typing uint32_t would probably be faster.Code: Select all
irr::u32
While I've always hated namespaces (PHP; et tu?) they do make things nice and quantified when dealing with multiple c++ libraries. The is one aspect where C++ is really starting to show its age.
Python not surprisingly does it perfectly by treating directories like namespaces. The from x import y is fantastic.
-
- Competition winner
- Posts: 1123
- Joined: Sun Jun 10, 2007 11:14 pm
-
- Posts: 1186
- Joined: Fri Dec 29, 2006 12:04 am
That's like carrying a car door while wandering in the desert so you can open the window to get some fresh air.Lonesome Ducky wrote:I've sometimes just kept irrlicht included in my console programs for the handy data types. Makes the .exe bigger and has to have the .dll, but makes my job easier I think.
Seriously, the 'handy' datatypes are already there. All you need is to include stdint.h. If you want u32 rather than uint32_t, use a typedef. There is no point in including Irrlicht.
"Whoops..."
-
- Competition winner
- Posts: 1123
- Joined: Sun Jun 10, 2007 11:14 pm
Sounds like a good idea to me!randomMesh wrote: That's like carrying a car door while wandering in the desert so you can open the window to get some fresh air.
But seriously, I'm not talking about just data types, I also like the vector classes, matrices, etc. If I only wanted the data types, I'd use a typedef. Sorry if my last post was misleading.
Some vector math libs
http://www.boost.org/doc/libs/1_37_0/li ... erview.htm
http://eigen.tuxfamily.org/index.php?title=Main_Page
http://www.netlib.org/
http://www.nr.com/
http://www.twilight3d.com/downloads.html
http://vmmlib.sourceforge.net/
http://cmldev.net/
http://forum.beyond3d.com/showthread.php?t=43137
http://www.boost.org/doc/libs/1_37_0/li ... erview.htm
http://eigen.tuxfamily.org/index.php?title=Main_Page
http://www.netlib.org/
http://www.nr.com/
http://www.twilight3d.com/downloads.html
http://vmmlib.sourceforge.net/
http://cmldev.net/
http://forum.beyond3d.com/showthread.php?t=43137
We're programmers. Programmers are, in their hearts, architects, and the first thing they want to do when they get to a site is to bulldoze the place flat and build something grand. We're not excited by renovation:tinkering,improving,planting flower beds.
Wouldn't it be easier to just include irrTypes.h, or does that also require to build lib?Lonesome Ducky wrote:I've sometimes just kept irrlicht included in my console programs for the handy data types. Makes the .exe bigger and has to have the .dll, but makes my job easier I think.
Working on game: Marrbles (Currently stopped).
Haha, I was thinking this.serengeor wrote:Wouldn't it be easier to just include irrTypes.h, or does that also require to build lib?Lonesome Ducky wrote:I've sometimes just kept irrlicht included in my console programs for the handy data types. Makes the .exe bigger and has to have the .dll, but makes my job easier I think.
Just remove the namespace and you've got a perfect header.
-
- Competition winner
- Posts: 1123
- Joined: Sun Jun 10, 2007 11:14 pm
Well, I have a blank console project that includes irrlicht by default. Why would I download a new library, learn how to use it, or recompile irrlicht, when I don't have to? It's easier not to change anything. I mean if I actually planned on releasing it, I'd of course pick something more compact. But I never release it (I use it as practice), so there's no real point in changing anything. Thanks for the concern though