Nombre de lignes : 70 lignes
Afficher ce fichier en plein écran
-
- //------------------------------
- // header.h
- //------------------------------
-
- #ifndef HEADER_H
- #define HEADER_H
-
- #ifndef __cplusplus
- #error "Compilateur C++ necessaire!"
-
- #endif // __cplusplus
-
- #include <windows.h>
- #include <cstdlib>
- #include <string>
- #include <vector>
-
- #include "Ressources.h"
-
- #ifndef EXIT_SUCCESS
- #define EXIT_SUCCESS 0
- #endif
-
- #define G2DBYTE BYTE
-
- //---------------------------------
- // Objects initialisation
- //---------------------------------
- #define G2DSPRITE cSprite*
- #define G2DBITMAP cBitmap*
- #define G2DRENDERER cRenderer*
- #define G2DINPUT cInputs*
- #define G2DTIMER cTime*
- #define G2DSOUND cSound*
-
- #define INIT int
- #define G2D_OK 1
- #define G2D_FAILED 0
-
- //--------------------------------
- // Screen resolutions
- //--------------------------------
- #define G2D_800_600 1
- #define G2D_1024_768 2
- #define G2D_1280_768 3
- #define G2D_1280_1024 4
- //
-
- //--------------------------------
- // Monitor frequency
- //--------------------------------
- #define G2D_50HZ 1
- #define G2D_60HZ 2
- #define G2D_70HZ 3
- #define G2D_DEFAULT 5
- //
-
- #define G2D_FULLSCREEN 1
-
- //--------------------------------
- // Error macros
- //--------------------------------
- #define MESSAGE_BOX(x, y)(MessageBox(NULL, x, y, MB_OK | MB_ICONEXCLAMATION));
- #define ASSERT(x, y){if(!x)MESSAGE_BOX(y, "Error!");}
-
- //#pragma warning(disable:4715)
-
- #endif // HEADER_H