From 95cc140404c6524ea16e193e1421e826b239114f Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 16 Aug 2009 16:32:38 +0000 Subject: more constness, initial patchDef2 support in MapFile, reverse engine disables impulse drive, r_axis support --- src/render/render.cc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/render/render.cc') diff --git a/src/render/render.cc b/src/render/render.cc index 27204f6..4ad2d84 100644 --- a/src/render/render.cc +++ b/src/render/render.cc @@ -26,6 +26,7 @@ namespace render { +core::Cvar *r_axis = 0; core::Cvar *r_bbox = 0; core::Cvar *r_grid = 0; core::Cvar *r_particles = 0; @@ -74,11 +75,14 @@ void init(int width, int height) r_normals->set_info("[bool] render face normals"); r_normalize = core::Cvar::get("r_normalize", "0", core::Cvar::Archive); - r_normalize->set_info("[bool] use GL_NORMALIZE instead of GL_RESCALE_NORMAL"); + r_normalize->set_info("[bool] use GL_NORMALIZE instead of GL_RESCALE_NORMAL (recommended off)"); r_grid = core::Cvar::get("r_grid", "0", core::Cvar::Archive); r_grid->set_info("[bool] render the space grid"); + r_axis = core::Cvar::get("r_axis", "0", core::Cvar::Archive); + r_axis->set_info("[bool] render entity axis"); + r_bbox = core::Cvar::get("r_bbox", "0", core::Cvar::Archive); r_bbox->set_info("[bool] render model bounding box"); @@ -99,9 +103,10 @@ void init(int width, int height) // hardware generate mipmaps r_mipmap = core::Cvar::get("r_mipmap", "1", core::Cvar::Archive); - r_mipmap->set_info("[bool] use hardware generated mipmaps"); + r_mipmap->set_info("[bool] use hardware generated mipmaps (recommended on)"); if (!State::has_generate_mipmaps()) { con_print << " no hardware generated mipmap support" << std::endl; + (*r_mipmap) = 0.0f; } Camera::init(); -- cgit v1.2.3