prefect
dbd58f4011
Remove CRenderer::Close(), which wasn't called anyway and the only reasonable
...
calling site would have been just before the destructor.
m_VertexShader is no longer leaked.
This was SVN commit r2860.
2005-10-06 16:07:36 +00:00
greybeard
6b25cafe05
The const size_t GFX_DRV_VER_LEN was increased from 64 to 256 to accommodate extraneous drivers found in the windows registry. This was made to prevent an assertion in wdetect.
...
This was SVN commit r2858.
2005-10-06 03:45:33 +00:00
prefect
bc8eba1002
Work around a bug in ATI's Linux OpenGL driver.
...
This was SVN commit r2857.
2005-10-06 03:29:26 +00:00
prefect
13697b8512
Stupid bug in VertexArrayIterator template - forgot a return *this.
...
This was SVN commit r2854.
2005-10-05 16:54:10 +00:00
prefect
f1ee2cd66d
Add the notion of render paths and an appropriate configuration option.
...
Add Ogl_Shader and Ogl_Program handle types for shaders/programs loaded
from
files.
In the vertexshader render path, use a vertex program for lighting for
optimization.
This was SVN commit r2853.
2005-10-05 16:42:09 +00:00
prefect
a4fc7105be
Explicitly call VertexBufferManager cleanup code, since we can't rely on
...
the order of destructors called for global instances.
This was SVN commit r2846.
2005-10-04 20:54:47 +00:00
Ykkrosh
721f6e4a1e
Atlas: [very] primitive brushes
...
This was SVN commit r2843.
2005-10-04 02:50:59 +00:00
prefect
5e3b6fcbe3
goto crosses initialization (deja vu? ;)).
...
This was SVN commit r2840.
2005-10-03 19:37:45 +00:00
Ykkrosh
b8c2f424e7
glDrawRangeElements -> glDrawRangeElementsEXT (fixes compilation error; EXT/ARB/etc extensions need to be used for everything not in GL1.1)
...
Reinserted mu-like symbol.
Fixed some minor warnings.
This was SVN commit r2838.
2005-10-03 16:04:55 +00:00
janwas
d367014972
vfs_store: set return value to #bytes written
...
fix 2 bugs in tex / ogl_tex reported by philip (related to caching) -
thanks!
tex: documented header and improved implementation. add tex_transform_to
for convenience. change tex_write to require going through tex_wrap.
This was SVN commit r2837.
2005-10-03 12:57:31 +00:00
prefect
6fc1f45fa6
Stab at fixing the VertexArray compile error on VC++.
...
Added float-to-byte color conversion, including an SSE assembler
version.
Model renderer: Push UV coordinates into a shared vertex array and use
bytes instead of floats for the color array, thereby, significantly
reducing
the total size of vertex arrays.
This was SVN commit r2827.
2005-10-03 03:41:42 +00:00
prefect
a05e712319
Added VertexArray & co. classes to simplify a flexible, render path dependent
...
vertex array layout.
Add CModelDefRData, a per-CModelDef render data class.
This was SVN commit r2826.
2005-10-02 21:11:11 +00:00
Ykkrosh
ffd8630c45
Updated autobuilder to get the .pdb files from 'system'.
...
Deleted ps_test, since it isn't updated by the autobuilder and will be
out of date.
Removed console history file, since it doesn't need to be
version-controlled.
This was SVN commit r2823.
2005-10-01 04:26:12 +00:00
prefect
a92e92cd46
Basic GL_ARB_vertex_shader detection.
...
Remove a redundant copy operation in ModelRData::BuildVertices
This was SVN commit r2822.
2005-09-30 22:23:48 +00:00
janwas
99c6af533d
fix for bug#68. allows opening hidden or system dirs because on some machines, the Windows dir is marked as such.
...
This was SVN commit r2820.
2005-09-30 15:24:03 +00:00
prefect
19b66bf0ff
Use BOOST_PP_CAT to delay token pasting until arguments are fully evaluated.
...
Fixes compile error on g++-3.3
This was SVN commit r2819.
2005-09-30 15:16:03 +00:00
Ykkrosh
2790981eae
CVSROOT: doesn't seem particularly useful now
...
ObjectBase: removed support for old actor format
Various: reduced sometimes-unnecessary header inclusions
Atlas: slightly nicer tool and message systems
This was SVN commit r2816.
2005-09-30 00:59:42 +00:00
prefect
ae20f157bc
Accidentally committed experimental changes. Sorry about that.
...
This was SVN commit r2815.
2005-09-29 22:40:13 +00:00
prefect
c92c9376b9
Fix out-of-range write to the keys[] array, caused by fake SDL_KEY* events.
...
Pressing the Windows key no longer crashes the Linux build.
This was SVN commit r2814.
2005-09-29 22:22:43 +00:00
prefect
fff184b8fb
Added sanity checks in hotkey handling.
...
This was SVN commit r2813.
2005-09-29 22:06:20 +00:00
prefect
38dfc3da99
Hardware cursor isn't implemented for X.
...
Remove dead sys_cursor_create references.
This was SVN commit r2812.
2005-09-29 21:48:04 +00:00
janwas
d98abf0685
final refactor (i hope). split up fmt / int_fmt determination to allow override of fmt without overriding int_fmt (useful for unifont.cpp). this changed the signature of ogl_tex_upload. better explained flags in OglTex and warn_if_uploaded.
...
also a few improvements / stomped on some warnings.
This was SVN commit r2809.
2005-09-29 17:33:30 +00:00
janwas
cd2f3948dd
changed sys_cursor interface to load directly from file; can add createFromMemory version later if ever needed.
...
cursor: reflects the above; much simplified now.
ogl_tex: preserve all texture state across reloads. add quality
mechanism (perf boost on older cards). split up upload code. add
ogl_tex_transform(). add more docs.
renderer, GUIrenderer, unifont: bring in line with ogl_tex changes (int
-> uint and call setters before ogl_tex_upload)
GameSetup.cpp: add tex quality mechanism
This was SVN commit r2803.
2005-09-29 05:00:20 +00:00
prefect
b67b023513
Add more verbosity to the shutdown sequence.
...
Shutdown doesn't look clean on Linux, and this might help highlight
current and future problems. Besides, we don't want shutdown to take
ages, do we? ;)
This was SVN commit r2801.
2005-09-29 02:30:30 +00:00
prefect
a769783d5d
Fix scroll wheel zooming on Linux.
...
Refactored HandleEvent into CGameView.
This was SVN commit r2800.
2005-09-28 23:57:55 +00:00
prefect
7fbbc1b0c6
Darken the background of the profile viewer for better readability.
...
This was SVN commit r2798.
2005-09-28 22:35:08 +00:00
prefect
3ded398729
g++ forbis goto across variable declarations.
...
This was SVN commit r2796.
2005-09-28 18:46:26 +00:00
Matei
f5613e74c8
Changed water color to Jason's dark blue.
...
This was SVN commit r2792.
2005-09-28 05:53:22 +00:00
pyrolink
41aa9ebda1
Added CameraLock() which makes the camera scroll smoothly over terrain and makes sure it is within g_YMinOffset+Terrain height and g_MaxZoomHeight, which are declared in main.cpp
...
This was SVN commit r2790.
2005-09-28 03:49:11 +00:00
pyrolink
56257d110e
Added changes to interactive minimap so that the camera will stay g_YMinOffset away from terrain it's warped to.
...
This was SVN commit r2789.
2005-09-28 03:46:05 +00:00
pyrolink
ed0dbb6d89
Added variables used by the MiniMap.cpp and GameView.cpp, and are for the CameraLock() function.
...
This was SVN commit r2788.
2005-09-28 03:44:21 +00:00
Matei
b7c04793f4
Updated water to use black-and-white texture and mix it with material color, allowing water color to be changed.
...
This was SVN commit r2786.
2005-09-27 23:14:08 +00:00
Matei
f2cae8cb9b
Added animated water.
...
This was SVN commit r2783.
2005-09-27 18:17:45 +00:00
janwas
db27ff6c9b
bugfix when writing screenshot: was calculating rounded up size for VFS incorrectly.
...
also fix refcnt for tex_wrap temporarily until mem_assign/mem_get_ptr
do.
h_mgr: add disallow-reload support (required for wrapped ogl_tex since
they are not backed by a file)
This was SVN commit r2780.
2005-09-27 15:35:17 +00:00
janwas
609be94b8c
comments/cosmetics;
...
fix UNREACHABLE def on unix;
string_s: use HAVE_STRING_S;
wdbg_sym: fix option set code; explain why search path isn't needed
WriteScreenshot: make sure there's enough mem; use Handle to free mem
(more efficient+less error prone)
This was SVN commit r2779.
2005-09-27 15:20:56 +00:00
prefect
8e31f44249
This is what the explicit "this->" before accesses of members of a
...
template base class needs to look like. More will surely follow.
This was SVN commit r2772.
2005-09-26 23:37:37 +00:00
prefect
9f9ab188e1
Add missing ret from ia32_control87 ;)
...
This was SVN commit r2771.
2005-09-26 23:36:43 +00:00
prefect
6c7759700f
More explicit %ls instead of %s for wide strings.
...
This was SVN commit r2770.
2005-09-26 23:36:17 +00:00
prefect
3c61029ff1
Some changes to how wchar_t strings are handled to make wchar debug messages
...
appear on stdout.
This was SVN commit r2769.
2005-09-26 23:20:04 +00:00
olsner
ee35659dc7
udbg fixes and a fix for the underscore problem in the assembler symbols
...
This was SVN commit r2765.
2005-09-26 05:38:40 +00:00
prefect
1c71c72e74
Fix for Linux build:
...
Header filenames in #include are case sensitive
This was SVN commit r2764.
2005-09-25 21:17:35 +00:00
janwas
37e9fc0388
- update load times
...
- config: add proper HAVE_ macro for string_s functions rather than
checking MSC ver directly
- string_s: disable parts of the self-test that trigger errors if not
using the string_s.cpp implementation
This was SVN commit r2760.
2005-09-21 16:42:56 +00:00
janwas
d6f31e4157
ogl_tex: documented and cleaned up.
...
h_mgr: add h_get_refcnt; saw h_alloc was a mess and split it up
mem: remove obsolete 'scope'
This was SVN commit r2759.
2005-09-21 16:11:43 +00:00
janwas
8ba42d5a3c
ia32.asm: add explicit init function (simplifies other code)
...
memcpy no longer requires SSE yet is still efficient (clever trick,
hehe)
This was SVN commit r2757.
2005-09-20 04:05:23 +00:00
janwas
2a8953452d
inlined bits and bit_mask for efficiency (as suggested by philip - thanks!)
...
add sanity check for struct Tex
This was SVN commit r2755.
2005-09-19 23:40:33 +00:00
janwas
13501cf58b
hook up emulate_glCompressedTexImage2D to new tex transform code (which takes care of DDS unpack)
...
to that end, provide support for "wrapping" existing textures so that
tex_* and ogl_tex* calls may be used.
also have renderer use ogl_tex for its created-on-the-fly composite
alpha texture
also named atlas's thread (for fun+profit during debugging)
This was SVN commit r2754.
2005-09-19 22:48:20 +00:00
janwas
a3967624af
add 64-bit endian-safe read; also bit_mask
...
work continues on DDS decode. endian-safe; supports dxt1a; now fairly
efficient and cleaned up.
This was SVN commit r2751.
2005-09-18 18:10:23 +00:00
Matei
603c475cf0
This was SVN commit r2749.
2005-09-18 06:28:23 +00:00
Matei
e5dea3e5a1
Water source code :|.
...
This was SVN commit r2746.
2005-09-18 03:47:15 +00:00
janwas
2b69209fcd
bits() param clarification
...
dds: serious cleanup of DDS decoder
This was SVN commit r2741.
2005-09-17 15:47:00 +00:00