mirror of
https://github.com/aap/librw.git
synced 2026-01-11 21:45:35 +00:00
added some very basic im2d stuff to gl3
This commit is contained in:
13
src/rwbase.h
13
src/rwbase.h
@@ -124,7 +124,7 @@ struct Quat
|
||||
float32 x, y, z, w;
|
||||
Quat(void) : x(0.0f), y(0.0f), z(0.0f), w(0.0f) {}
|
||||
Quat(float32 w, float32 x, float32 y, float32 z) : x(x), y(y), z(z), w(w) {}
|
||||
Quat(float32 w, V3d vec) : x(vec.x), y(vec.y), z(vec.z), w(w) {}
|
||||
Quat(float32 w, const V3d &vec) : x(vec.x), y(vec.y), z(vec.z), w(w) {}
|
||||
Quat(V3d vec) : x(vec.x), y(vec.y), z(vec.z), w(0.0f) {}
|
||||
static Quat rotation(float32 angle, const V3d &axis){
|
||||
return Quat(cos(angle/2.0f), scale(axis, sin(angle/2.0f))); }
|
||||
@@ -204,6 +204,17 @@ struct Sphere
|
||||
float32 radius;
|
||||
};
|
||||
|
||||
enum PrimitiveType
|
||||
{
|
||||
PRIMTYPENONE = 0,
|
||||
PRIMTYPELINELIST,
|
||||
PRIMTYPEPOLYLINE,
|
||||
PRIMTYPETRILIST,
|
||||
PRIMTYPETRISTRIP,
|
||||
PRIMTYPETRIFAN,
|
||||
PRIMTYPEPOINTLIST,
|
||||
};
|
||||
|
||||
/*
|
||||
* Streams
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user