Kaydet (Commit) aef3ce97 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

There is this thing called bool to use for Boolean flags

Change-Id: Ifc25cb29b17e33d19e8f4ccafc653fdb686f2b5a
üst 3fef59ce
...@@ -48,7 +48,7 @@ typedef struct MaterialParameters ...@@ -48,7 +48,7 @@ typedef struct MaterialParameters
glm::vec4 specular; glm::vec4 specular;
glm::vec4 materialColor; glm::vec4 materialColor;
int twoSidesLighting; bool twoSidesLighting;
float shininess; float shininess;
float pad; float pad;
float pad1; float pad1;
...@@ -73,9 +73,9 @@ typedef struct GlobalLights ...@@ -73,9 +73,9 @@ typedef struct GlobalLights
typedef struct Polygon3DInfo typedef struct Polygon3DInfo
{ {
short lineOnly; bool lineOnly;
float lineWidth; float lineWidth;
int twoSidesLighting; bool twoSidesLighting;
long fillStyle; long fillStyle;
glm::vec4 polygonColor; glm::vec4 polygonColor;
Vertices3D *vertices; Vertices3D *vertices;
...@@ -90,9 +90,9 @@ typedef struct Polygon3DInfo ...@@ -90,9 +90,9 @@ typedef struct Polygon3DInfo
typedef struct Extrude3DInfo typedef struct Extrude3DInfo
{ {
int pickingFlg; int pickingFlg;
short lineOnly; bool lineOnly;
float lineWidth; float lineWidth;
int twoSidesLighting; bool twoSidesLighting;
glm::vec4 extrudeColor; glm::vec4 extrudeColor;
long fillStyle; long fillStyle;
float xRange[2]; float xRange[2];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment