SLProject  4.2.000
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
SL.h File Reference
#include <Utils.h>
Include dependency graph for SL.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SL_GETBIT(VAR, VAL)   VAR& VAL
 
#define SL_SETBIT(VAR, VAL)   VAR |= VAL
 
#define SL_DELBIT(VAR, VAL)   VAR &= ~VAL
 
#define SL_TOGBIT(VAR, VAL)   if ((VAR) & (VAL)) (VAR) &= ~(VAL); else (VAR) |= VAL
 
#define UNUSED_PARAMETER(r)   ((void)(x))
 
#define SL_LOG(...)   Utils::log("SLProject", __VA_ARGS__)
 
#define SL_LOG_DEBUG(...)   {}
 
#define SL_EXIT_MSG(message)   Utils::exitMsg("SLProject", (message), __LINE__, __FILE__)
 
#define SL_WARN_MSG(message)   Utils::warnMsg("SLProject", (message), __LINE__, __FILE__)
 

Typedefs

typedef string SLstring
 
typedef std::wstring SLwstring
 
typedef char SLchar
 
typedef unsigned char SLuchar
 
typedef signed long SLlong
 
typedef unsigned long SLulong
 
typedef signed char SLbyte
 
typedef unsigned char SLubyte
 
typedef short SLshort
 
typedef unsigned short SLushort
 
typedef int SLint
 
typedef unsigned int SLuint
 
typedef int SLsizei
 
typedef float SLfloat
 
typedef double SLdouble
 
typedef bool SLbool
 
typedef unsigned int SLenum
 
typedef unsigned int SLbitfield
 
typedef int8_t SLint8
 
typedef uint8_t SLuint8
 
typedef int16_t SLint16
 
typedef uint16_t SLuint16
 
typedef int32_t SLint32
 
typedef uint32_t SLuint32
 
typedef int64_t SLint64
 
typedef uint64_t SLuint64
 
typedef vector< SLboolSLVbool
 
typedef vector< SLbyteSLVbyte
 
typedef vector< SLubyteSLVubyte
 
typedef vector< SLcharSLVchar
 
typedef vector< SLucharSLVuchar
 
typedef vector< SLshortSLVshort
 
typedef vector< SLushortSLVushort
 
typedef vector< SLintSLVint
 
typedef vector< SLuintSLVuint
 
typedef vector< SLlongSLVlong
 
typedef vector< SLulongSLVulong
 
typedef vector< SLfloatSLVfloat
 
typedef vector< SLstringSLVstring
 
typedef vector< size_t > SLVsize_t
 
typedef vector< vector< SLfloat > > SLVVfloat
 
typedef vector< vector< SLuchar > > SLVVuchar
 
typedef vector< vector< SLushort > > SLVVushort
 
typedef vector< vector< SLuint > > SLVVuint
 
typedef vector< vector< SLchar > > SLVVchar
 
typedef vector< vector< SLshort > > SLVVshort
 
typedef vector< vector< SLint > > SLVVint
 

Functions

template<class T >
SLuint SL_sizeOfVector (const T &vector)
 

Macro Definition Documentation

◆ SL_DELBIT

#define SL_DELBIT (   VAR,
  VAL 
)    VAR &= ~VAL

Definition at line 225 of file SL.h.

◆ SL_EXIT_MSG

#define SL_EXIT_MSG (   message)    Utils::exitMsg("SLProject", (message), __LINE__, __FILE__)

Definition at line 240 of file SL.h.

◆ SL_GETBIT

#define SL_GETBIT (   VAR,
  VAL 
)    VAR& VAL

Definition at line 223 of file SL.h.

◆ SL_LOG

#define SL_LOG (   ...)    Utils::log("SLProject", __VA_ARGS__)

Definition at line 233 of file SL.h.

◆ SL_LOG_DEBUG

#define SL_LOG_DEBUG (   ...)    {}

Definition at line 237 of file SL.h.

◆ SL_SETBIT

#define SL_SETBIT (   VAR,
  VAL 
)    VAR |= VAL

Definition at line 224 of file SL.h.

◆ SL_TOGBIT

#define SL_TOGBIT (   VAR,
  VAL 
)    if ((VAR) & (VAL)) (VAR) &= ~(VAL); else (VAR) |= VAL

Definition at line 226 of file SL.h.

◆ SL_WARN_MSG

#define SL_WARN_MSG (   message)    Utils::warnMsg("SLProject", (message), __LINE__, __FILE__)

Definition at line 241 of file SL.h.

◆ UNUSED_PARAMETER

#define UNUSED_PARAMETER (   r)    ((void)(x))

Definition at line 229 of file SL.h.

Typedef Documentation

◆ SLbitfield

typedef unsigned int SLbitfield

Definition at line 177 of file SL.h.

◆ SLbool

typedef bool SLbool

Definition at line 175 of file SL.h.

◆ SLbyte

typedef signed char SLbyte

Definition at line 166 of file SL.h.

◆ SLchar

typedef char SLchar

Definition at line 162 of file SL.h.

◆ SLdouble

typedef double SLdouble

Definition at line 174 of file SL.h.

◆ SLenum

typedef unsigned int SLenum

Definition at line 176 of file SL.h.

◆ SLfloat

typedef float SLfloat

Definition at line 173 of file SL.h.

◆ SLint

typedef int SLint

Definition at line 170 of file SL.h.

◆ SLint16

typedef int16_t SLint16

Definition at line 181 of file SL.h.

◆ SLint32

typedef int32_t SLint32

Definition at line 183 of file SL.h.

◆ SLint64

typedef int64_t SLint64

Definition at line 185 of file SL.h.

◆ SLint8

typedef int8_t SLint8

Definition at line 179 of file SL.h.

◆ SLlong

typedef signed long SLlong

Definition at line 164 of file SL.h.

◆ SLshort

typedef short SLshort

Definition at line 168 of file SL.h.

◆ SLsizei

typedef int SLsizei

Definition at line 172 of file SL.h.

◆ SLstring

typedef string SLstring

Definition at line 158 of file SL.h.

◆ SLubyte

typedef unsigned char SLubyte

Definition at line 167 of file SL.h.

◆ SLuchar

typedef unsigned char SLuchar

Definition at line 163 of file SL.h.

◆ SLuint

typedef unsigned int SLuint

Definition at line 171 of file SL.h.

◆ SLuint16

typedef uint16_t SLuint16

Definition at line 182 of file SL.h.

◆ SLuint32

typedef uint32_t SLuint32

Definition at line 184 of file SL.h.

◆ SLuint64

typedef uint64_t SLuint64

Definition at line 186 of file SL.h.

◆ SLuint8

typedef uint8_t SLuint8

Definition at line 180 of file SL.h.

◆ SLulong

typedef unsigned long SLulong

Definition at line 165 of file SL.h.

◆ SLushort

typedef unsigned short SLushort

Definition at line 169 of file SL.h.

◆ SLVbool

typedef vector<SLbool> SLVbool

Definition at line 189 of file SL.h.

◆ SLVbyte

typedef vector<SLbyte> SLVbyte

Definition at line 190 of file SL.h.

◆ SLVchar

typedef vector<SLchar> SLVchar

Definition at line 192 of file SL.h.

◆ SLVfloat

typedef vector<SLfloat> SLVfloat

Definition at line 200 of file SL.h.

◆ SLVint

typedef vector<SLint> SLVint

Definition at line 196 of file SL.h.

◆ SLVlong

typedef vector<SLlong> SLVlong

Definition at line 198 of file SL.h.

◆ SLVshort

typedef vector<SLshort> SLVshort

Definition at line 194 of file SL.h.

◆ SLVsize_t

typedef vector<size_t> SLVsize_t

Definition at line 202 of file SL.h.

◆ SLVstring

typedef vector<SLstring> SLVstring

Definition at line 201 of file SL.h.

◆ SLVubyte

typedef vector<SLubyte> SLVubyte

Definition at line 191 of file SL.h.

◆ SLVuchar

typedef vector<SLuchar> SLVuchar

Definition at line 193 of file SL.h.

◆ SLVuint

typedef vector<SLuint> SLVuint

Definition at line 197 of file SL.h.

◆ SLVulong

typedef vector<SLulong> SLVulong

Definition at line 199 of file SL.h.

◆ SLVushort

typedef vector<SLushort> SLVushort

Definition at line 195 of file SL.h.

◆ SLVVchar

typedef vector<vector<SLchar> > SLVVchar

Definition at line 209 of file SL.h.

◆ SLVVfloat

typedef vector<vector<SLfloat> > SLVVfloat

Definition at line 205 of file SL.h.

◆ SLVVint

typedef vector<vector<SLint> > SLVVint

Definition at line 211 of file SL.h.

◆ SLVVshort

typedef vector<vector<SLshort> > SLVVshort

Definition at line 210 of file SL.h.

◆ SLVVuchar

typedef vector<vector<SLuchar> > SLVVuchar

Definition at line 206 of file SL.h.

◆ SLVVuint

typedef vector<vector<SLuint> > SLVVuint

Definition at line 208 of file SL.h.

◆ SLVVushort

typedef vector<vector<SLushort> > SLVVushort

Definition at line 207 of file SL.h.

◆ SLwstring

typedef std::wstring SLwstring

Definition at line 160 of file SL.h.

Function Documentation

◆ SL_sizeOfVector()

template<class T >
SLuint SL_sizeOfVector ( const T &  vector)
inline

Definition at line 217 of file SL.h.

218 {
219  return (SLint)(vector.capacity() * sizeof(typename T::value_type));
220 }
int SLint
Definition: SL.h:170