1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-07-17 21:35:21 +00:00

first step towards making the render process const

This commit is contained in:
fgenesis 2022-05-19 05:17:00 +02:00
parent 46010244f5
commit b6fb6944f6
67 changed files with 209 additions and 400 deletions

View file

@ -75,7 +75,7 @@ static inline void drawOnePoint(const QuadGrid::Point& p, float ox, float oy)
}
void QuadGrid::onRender()
void QuadGrid::onRender() const
{
glColor4f(color.x, color.y, color.z, alpha.x * alphaMod);
@ -88,8 +88,8 @@ void QuadGrid::onRender()
const size_t H = quadsY();
for(size_t y = 0; y < H; ++y)
{
Point * const row0 = &_points[y * NX];
Point * const row1 = row0 + NX;
const Point * const row0 = &_points[y * NX];
const Point * const row1 = row0 + NX;
for(size_t x = 0; x < W; ++x)
{
glBegin(GL_QUADS);