mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-11-17 13:14:30 +00:00
fixup to minimize improve
This commit is contained in:
1 parent
1271c9162a
commit
70842eb6e9
1 file changed
+5
-2
@@ -124,11 +124,14 @@ struct glmatrix {
|
||||
color[2] = b;
|
||||
color[3] = 1;
|
||||
}
|
||||
colored_vertex(hyperpoint h, color_t col) {
|
||||
coords = pointtogl(h);
|
||||
void set_color(color_t col) {
|
||||
for(int i=0; i<4; i++)
|
||||
color[i] = part(col, 3-i) / 255.0;
|
||||
}
|
||||
colored_vertex(hyperpoint h, color_t col) {
|
||||
coords = pointtogl(h);
|
||||
set_color(col);
|
||||
}
|
||||
};
|
||||
|
||||
struct textured_vertex {
|
||||
|
||||
Reference in new issue
Block a user