drawcolorcodedstring: support full 6 parms (added starting rgb) and returns color of the last character so colortags can affect multiline draw. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10694 d7cf8633-e32d-0410-b094-e92efae38249
use less R_Mesh_ResetTextureState calls for more performance git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10592 d7cf8633-e32d-0410-b094-e92efae38249
render shownetgraph much faster by drawing an entire batch of lines at a time git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10591 d7cf8633-e32d-0410-b094-e92efae38249
I suppose 0xE000 is a valid fontmap char... so render it as charmap item 0 git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10566 d7cf8633-e32d-0410-b094-e92efae38249
fix one issue with textshadow moving oddly around in an unknown situation git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10564 d7cf8633-e32d-0410-b094-e92efae38249
Fix nasty bug with dp_fonts structure expanding, once dp_fonts.f being reallocated, their corresponding ft2 settings links was messed up causing crash or postprocess to be lost. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10559 d7cf8633-e32d-0410-b094-e92efae38249
fix autoload semantics of drawpics git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10499 d7cf8633-e32d-0410-b094-e92efae38249
loadfont now prints a warning if it gets more than MAX_FONT_SIZES sizes and skips duplicated sizes Signed-off-by: terencehill <piuntn@gmail.com> git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10493 d7cf8633-e32d-0410-b094-e92efae38249
don't use TEXF_ALLOWUPDATES on fully-updated textures such as video git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10415 d7cf8633-e32d-0410-b094-e92efae38249
recalc the 2D view if changing view parameters with R_SetView git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10397 d7cf8633-e32d-0410-b094-e92efae38249
Draw_CachePic_Flags: ignore TEXF_COMPRESS when comparing, because fallback pics remove the flag git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10396 d7cf8633-e32d-0410-b094-e92efae38249
track if a cachepic has alpha, and turn off depth write if it does; also use alpha-less blendfuncs if all alpha values are >= 1 and the texture has no alpha (might be a slight performance increase, but mainly to help R_BeginPolygon in 3D space) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10360 d7cf8633-e32d-0410-b094-e92efae38249
PROPERLY handle roundoff errors in drawsetcliparea git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10359 d7cf8633-e32d-0410-b094-e92efae38249
Fix the usage of the CACHEPICFLAGS_NOTPERSISTENT flag in Draw_CachePic calls From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com> git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10358 d7cf8633-e32d-0410-b094-e92efae38249
fix font loading bug causing E0xx glyphs to get zero size git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10275 d7cf8633-e32d-0410-b094-e92efae38249
implemented Direct3D9 renderer (off by default), not very optimized but almost completely functional git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10267 d7cf8633-e32d-0410-b094-e92efae38249
add DeviceLost and DeviceRestored functions to R_Modules system git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10263 d7cf8633-e32d-0410-b094-e92efae38249
fix a bunch of warnings if compiling darkplaces as C++ in MSVC2008 git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10262 d7cf8633-e32d-0410-b094-e92efae38249
new cvar r_draw2d to turn off all 2D drawing (except for console, r_speeds and showfps) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10259 d7cf8633-e32d-0410-b094-e92efae38249
new cvars: scr_conalpha2factor (relative alpha for gfx/conback2) scr_conscroll_x (like tcmod scroll on console background) scr_conscroll_y scr_conscroll2_x (like tcmod scroll on second console background) scr_conscroll2_y git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10256 d7cf8633-e32d-0410-b094-e92efae38249