mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-10-25 19:07:40 +00:00
fixed some guards (in progress)
This commit is contained in:
@@ -70,21 +70,24 @@ void geometry_information::shift(hpcshape& sh, double dx, double dy, double dz)
|
||||
}
|
||||
|
||||
void geometry_information::initPolyForGL() {
|
||||
|
||||
#if CAP_GL
|
||||
ourshape.clear();
|
||||
|
||||
for(auto& h: hpc)
|
||||
ourshape.push_back(glhr::pointtogl(h));
|
||||
|
||||
glhr::store_in_buffer(ourshape);
|
||||
#endif
|
||||
}
|
||||
|
||||
void geometry_information::extra_vertices() {
|
||||
#if CAP_GL
|
||||
while(isize(ourshape) < isize(hpc))
|
||||
ourshape.push_back(glhr::pointtogl(hpc[isize(ourshape)]));
|
||||
glhr::store_in_buffer(ourshape);
|
||||
glhr::current_vertices = NULL;
|
||||
prehpc = isize(hpc);
|
||||
#endif
|
||||
}
|
||||
|
||||
transmatrix geometry_information::ddi(int a, ld x) { return xspinpush(a * M_PI / S42, x); }
|
||||
|
||||
Reference in New Issue
Block a user