mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-12-21 21:28:33 +00:00
fixup to minimize improve
This commit is contained in:
7
glhr.cpp
7
glhr.cpp
@@ -124,11 +124,14 @@ struct glmatrix {
|
|||||||
color[2] = b;
|
color[2] = b;
|
||||||
color[3] = 1;
|
color[3] = 1;
|
||||||
}
|
}
|
||||||
colored_vertex(hyperpoint h, color_t col) {
|
void set_color(color_t col) {
|
||||||
coords = pointtogl(h);
|
|
||||||
for(int i=0; i<4; i++)
|
for(int i=0; i<4; i++)
|
||||||
color[i] = part(col, 3-i) / 255.0;
|
color[i] = part(col, 3-i) / 255.0;
|
||||||
}
|
}
|
||||||
|
colored_vertex(hyperpoint h, color_t col) {
|
||||||
|
coords = pointtogl(h);
|
||||||
|
set_color(col);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
struct textured_vertex {
|
struct textured_vertex {
|
||||||
|
|||||||
Reference in New Issue
Block a user