arthurprs
13-10-2007, 03:26 AM
Today i was programming in c++ and a parter told me to use irrKlang audio lib http://www.ambiera.com/irrklang
i liked a lot¬?, easy to use and very powerfull
so i like to convert the headers to my prefered language :)
fist i need some help how to c++ -> ObjectPascal types,
what i typed is correct?
and what i do with namespaces in pascal?
namespace irr
{
//! 8 bit unsigned variable.
typedef unsigned char u8; //byte;
//! 8 bit signed variable.
typedef signed char s8; //shortint;
//! 8 bit character variable.
typedef char c8; // char;
//! 16 bit unsigned variable.
typedef unsigned short u16; //word;
//! 16 bit signed variable.
typedef signed short s16; //smallint;
//! 32 bit unsigned variable.
typedef unsigned int u32; //cardinal;
//! 32 bit signed variable.
typedef signed int s32; //integer;
//! 32 bit floating point variable.
typedef float f32; //single;
//! 64 bit floating point variable.
typedef double f64; //double;
} // end namespace
i liked a lot¬?, easy to use and very powerfull
so i like to convert the headers to my prefered language :)
fist i need some help how to c++ -> ObjectPascal types,
what i typed is correct?
and what i do with namespaces in pascal?
namespace irr
{
//! 8 bit unsigned variable.
typedef unsigned char u8; //byte;
//! 8 bit signed variable.
typedef signed char s8; //shortint;
//! 8 bit character variable.
typedef char c8; // char;
//! 16 bit unsigned variable.
typedef unsigned short u16; //word;
//! 16 bit signed variable.
typedef signed short s16; //smallint;
//! 32 bit unsigned variable.
typedef unsigned int u32; //cardinal;
//! 32 bit signed variable.
typedef signed int s32; //integer;
//! 32 bit floating point variable.
typedef float f32; //single;
//! 64 bit floating point variable.
typedef double f64; //double;
} // end namespace