OpenMiner/include/types.h
2013-05-22 23:43:05 +02:00

40 lines
1.2 KiB
C

/*---------------------------------------------------------------------------------
KubKraft
Copyright (C) 2013 Quentin Bazin <quent42340@gmail.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
---------------------------------------------------------------------------------*/
#ifndef TYPES_H
#define TYPES_H
typedef unsigned char u8;
typedef signed char s8;
typedef unsigned short u16;
typedef signed short s16;
typedef unsigned long u32;
typedef signed long s32;
struct vect3D {
float x;
float y;
float z;
vect3D(float xx = 0, float yy = 0, float zz = 0)
: x(xx), y(yy), z(zz) {}
};
#endif // TYPES_H