summaryrefslogtreecommitdiff
path: root/src/renderer
AgeCommit message (Collapse)Author
2013-01-12Fix a bunch of warningsTim Angus
2013-01-12Changes to make rend2 work with TremulousTim Angus
* Remove static video mode stuff * Add SetClipRegion to rend2
2013-01-12#5818 - Modular renderer and Rend2 support for MSVC.SmileTheory
2013-01-12Increase various arbitrary limits - Bug #5463Zachary Slater
2013-01-12Merge changes to GL_Cull from Rend2 into opengl1 renderer, behavior is the same.Zack Middleton
2013-01-12Split Rend2's printing OpenGL extensions string (> 1024 characters) into ↵Zack Middleton
separate function and merged into opengl1 renderer. (Fixes bug #5559.)
2013-01-12From /dev/humancontroller: to further reduce confusion, rename constants ↵Zack Middleton
like MAX_ENTITIES to MAX_REFENTITIES
2013-01-12From /dev/humancontroller: really fix the confusion with game entity and ↵Zack Middleton
refentity numbers for any natural number M, the following is logical as a whole: - the array size for refentities is M; - the refentity number limit is M-1, ie., each refentity number is in [0..M-1]; - the special number for the world is M. before r1429, the code was roughly the following: // constants related to the game, should not be used by the renderer // renderer stuff refEntity_t refEntities[MAX_ENTITIES]; int numRefEntities = 0; void addRefEntity(refEntity_t re) { if (numRefEntities >= ENTITYNUM_WORLD) return; // full refEntities[numRefEntities++] = re; } void render(int num) { if (num == ENTITYNUM_WORLD) renderWorld(); else renderRefEntity(refEntities[num]); } so before r1429, - the array size for refentities was 1023; - the refentity number limit was 1021, ie., each refentity number was in [0..1021]; and - the special number for the world entity was 1022. this was a small waste of memory, as the last array element wasn't used. r1429 changed if (numRefEntities >= ENTITYNUM_WORLD) to if (numRefEntities >= MAX_ENTITIES). this creates the following configuration: - the array size for refentities is 1023; - the refentity number limit is 1022, ie., each refentity number is in [0..1022]; and - the special number for the world entity is 1022. r1429 just makes things worse: it allows 1 more refentity to be added, but that entity doesn't get drawn anyway, as its number will be equal to the special number for the world. this is a small waste of not only memory, but also processing time. perhaps in XreaL, ENTITYNUM_WORLD is a game entity constant, and has nothing to do with refentities. a new REFENTITYNUM_WORLD constant should be added to denote the special number for the world, and that constant should be used in the renderer code in place of ENTITYNUM_WORLD. so define such a constant, and let it be equal to MAX_ENTITIES, which is 1023.
2013-01-12Incorrect number of overbright bits printed by GfxInfo_f() (#5510) - fix by ↵Thilo Schulz
Serge Belyshev
2013-01-12REFACTOR [reletive -> relative]Zack Middleton
From /dev/humancontroller.
2013-01-12REFACTOR [a vs an]Zack Middleton
From /dev/humancontroller.
2013-01-12#5503 - SIGSEGV with r_vertexlight 1 in missionpack (patch by Serge Belyshev).Zack Middleton
2013-01-12Fix (#5312) introduced by rev 2103Thilo Schulz
2013-01-12Moved dpi variable inside BUILD_FREETYPE ifdef.Zack Middleton
2013-01-12Fixed some issues found using clang static analyzer.Zack Middleton
2013-01-12Use FreeType include macros instead of filenames directly (per the API ↵Zack Middleton
docs), patch by Radegast.
2013-01-12Fixed up warning messages in tr_font.cZack Middleton
2013-01-12Use tabs in tr_font.cZack Middleton
2013-01-12Removed set but not used variable 'satLevels' from tr_font.c.Zack Middleton
2013-01-12Make sure font glyph shader names are null-terminated.Zack Middleton
2013-01-12Fixed possibly placing a font glyph (at the beginning of a row) past the ↵Zack Middleton
bottom of a font cache image.
2013-01-12Fixed writing pre-rendered font TGAs, needed to flip image.Zack Middleton
2013-01-12- Added support for enabling FreeType Support (make USE_FREETYPE=1). - Fixed ↵Zack Middleton
compiling tr_font.c for dynamic renderer.
2013-01-12Fix build for new modular renderer on MacOSXThilo Schulz
2013-01-12Reverted r2209...Zack Middleton
2013-01-12Show warning when renderer cannot load model after checking all supported ↵Zack Middleton
formats, instead of after each format.
2013-01-12Add color combination green-magenta for anaglyphThilo Schulz
2013-01-12Fixed usage of various entity defines.Zack Middleton
2013-01-12Print developer message when renderer runs out of free entities.Zack Middleton
2013-01-10* Fix various warnings with GCC and clangTim Angus
2013-01-10* clang supportTim Angus
2013-01-10Bug 5199 - IQM joint matrices wrong, patch by James CaneteThilo Schulz
2013-01-10- Fix already defined command warnings for minimize - Fix recursive ↵Thilo Schulz
CL_Shutdown warning and "command already defined" warnings when quitting while playing on a server that changed the gamedir.
2013-01-10Add forgotten file for last revThilo Schulz
2013-01-10Modular rendering system. Patch by use.less01 This might break MSVC builds. ↵Thilo Schulz
I'll take care of it later
2013-01-10Bug 5094 - Code cleanup, patch by Zack Middleton and DevHC. Fixes ↵Thilo Schulz
unused-but-set gcc warnings
2013-01-10Fix menu corruption on IRIX (#5097), patch by Rainer CanavanThilo Schulz
2013-01-10Bug 4812 - GCC __attribute__ annotations for printf, non-returning functions ↵Thilo Schulz
etc., patch by linux@youmustbejoking.demon.co.uk and Zack Middleton
2013-01-10All patches by Zack Middleton: - Bug 5057 - Two weapon number range checks ↵Thilo Schulz
allows invalid number - Bug 5058 - Railgun explosion cannot be colorized - Bug 5059 - Client's railgun does not glow in third person and mirror - Bug 5060 - Warning in RAVENMD4 R_GetAnimTag cross compiling with amd64-mingw32
2013-01-10patch by Zack Middleton (#5044) - Fix a few comments in tr_local.h - A bit ↵Thilo Schulz
of refactoring of the cpp macros
2013-01-10- Small change to search path order - local files not in .pk3s take ↵Thilo Schulz
precedence over files in pk3s. Should make life easier for modders/mappers wanting to override textures that are already contained in some older pk3 - Make VM loading more robust, change loading order: when vm_* == 0 first try loading DLL, then QVM in *each* search directory/path - Fix FS_FileForHandle that would return a FILE pointer to invalid file handle 0
2013-01-09- Add MASM assembler files for MSVC x64 projects to support vm_x86 in x64 ↵Thilo Schulz
mode - Clean up ftol()/snapvector() mess - Make use of SSE instructions for ftol()/snapvector() if available - move ftol/snapvector pure assembler to inline assembler, this will add x86_64 and improve support for different calling conventions - Set FPU control word at program startup to get consistent behaviour on all platforms
2013-01-09Fix forgotten IQM2 support in iqm.h, patch by Zack MiddletonThilo Schulz
2013-01-09Fixes to IQM support, by Zack Middleton - Bug 5029 - IQM skin support for ↵Thilo Schulz
upper case surface names - Bug 5030 - IQM version 2 support - Bug 5031 - Animated IQMs cause segfault - Bug 5032 - IQM does not setup tag axis/origin correctly - Bug 5033 - IQM bounds swap and segfault issues
2013-01-09Remove newlines from Com_Error calls, patch by DevHCThilo Schulz
2013-01-09Choose better alignment for heavy-duty rendering structures, patch by Matt ↵Thilo Schulz
Turner (#4981)
2013-01-09IQM skin support and print limit info, make other limit info consistent, ↵Thilo Schulz
patch by Zack Middleton (#4978)
2013-01-09Remove C99 code constructs from IQM code, patch by gimhael (#4974)Thilo Schulz
2013-01-09<ZTurtleMan> Thilo: altName (created using va) does not point to model ↵Thilo Schulz
filename in developer-only printf as va is used to load images before the printf. http://pastebin.com/1KCjz6Ct
2013-01-09- Add licence headers to new files - Add patch from Zack Middleton which ↵Thilo Schulz
fixes a few issues still