Changeset 772


Ignore:
Timestamp:
Jun 10, 2011, 1:01:45 AM (8 years ago)
Author:
sam
Message:

debug: display larger debug quads to avoid wasting space.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/debugquad.cpp

    r771 r772  
    282282    /* Prepare our quad coordinates */
    283283    vec2i const layout(4, 3);
    284     data->step = vec2(2.0f, -2.0f) / (2 * layout + vec2i(1));
     284    data->step = vec2(2.0f, -2.0f) / (3 * layout + vec2i(1));
    285285    data->orig = vec2(-1.0f, 1.0f) + data->step;
    286286    data->aa = data->orig;
    287     data->bb = data->orig + data->step;
     287    data->bb = data->orig + 2.0f * data->step;
    288288
    289289    /* Generate a few random numbers */
     
    413413void DebugQuad::Advance()
    414414{
    415     data->aa.x += 2.0f * data->step.x;
    416     data->bb.x += 2.0f * data->step.x;
     415    data->aa.x += 3.0f * data->step.x;
     416    data->bb.x += 3.0f * data->step.x;
    417417    if (data->bb.x > 1.0f)
    418418    {
    419419        data->aa.x = data->orig.x;
    420         data->bb.x = data->orig.x + data->step.x;
    421         data->aa.y += 2.0f * data->step.y;
    422         data->bb.y += 2.0f * data->step.y;
     420        data->bb.x = data->orig.x + 2.0f * data->step.x;
     421        data->aa.y += 3.0f * data->step.y;
     422        data->bb.y += 3.0f * data->step.y;
    423423    }
    424424}
Note: See TracChangeset for help on using the changeset viewer.