graphics

experiments with opengl3.2/ogles3.3 on linux and win7
git clone http://frotz.net/git/graphics.git
Log | Files | Refs

types.h (395B)


      1 #ifndef _TYPES_H_
      2 #define _TYPES_H_
      3 
      4 /* basic datatypes */
      5 typedef unsigned int u32;
      6 typedef int s32;
      7 typedef unsigned short u16;
      8 typedef short s16;
      9 typedef unsigned char u8;
     10 typedef signed char s8;
     11 
     12 #define DISALLOW_COPY_AND_ASSIGN(TypeName) \
     13 	TypeName(const TypeName&); \
     14 	void operator=(const TypeName&)
     15 
     16 #define RGBA(r,g,b,a) ((r&0xFF)|((g&0xFF)<<8)|((b&0xFF)<<16)|((a&0xFF)<<24))
     17 
     18 #endif
     19