diff options
author | Stijn Buys <ingar@osirion.org> | 2008-04-06 14:13:36 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-04-06 14:13:36 +0000 |
commit | 7b5a6b820d5acef36d402bd5a52d783ec68d33c7 (patch) | |
tree | a1cb65e071441277865ca5f4e315611cdd51c0e5 /src/render | |
parent | 25d2c764443723eb7a3dd5f8bf0b76586c1ff10b (diff) |
mouse grabbing, Cvar and Func info
Diffstat (limited to 'src/render')
-rw-r--r-- | src/render/render.cc | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/render/render.cc b/src/render/render.cc index 8311c16..7f79a85 100644 --- a/src/render/render.cc +++ b/src/render/render.cc @@ -75,17 +75,23 @@ void init() core::application()->shutdown(); } - r_arraysize = core::Cvar::get("r_arraysize", 4.0f * (float) sizeof(float) , core::Cvar::Archive); + // size of the vertex array in megabytes + r_arraysize = core::Cvar::get("r_arraysize", 0.0f , core::Cvar::Archive); + r_arraysize->set_info("[int] size of the vertex array in Mb"); + size_t mb = (size_t) r_arraysize->value(); - if (mb < 8) - mb = 8; + if (mb < 4 * sizeof(float)) + mb = 4 * sizeof(float); if (mb > 256) mb = 256; (*r_arraysize) = (float) mb; vertexarray = new core::VertexArray(mb); r_radius = core::Cvar::get("r_radius", "0", core::Cvar::Archive); + r_radius->set_info("[bool] render entity radius"); + r_wireframe = core::Cvar::get("r_wireframe", "0", core::Cvar::Archive); + r_wireframe->set_info("[bool] render wireframe"); } void shutdown() |