svdijk
9803652781
some strncpy/strncat fixes
2013-05-07 21:46:46 +02:00
svdijk
aae7de19c4
Use some safer offset values for gl_zfix, and default to 0
...
(Since it seems to cause unwanted artifacts with some drivers)
2013-04-07 19:07:16 +02:00
Yamagi Burmeister
1bee58840d
Silence a gcc48 warning due to some "creative" array usage
...
To my understanding this code and the old code do exactly the same, this
one is just more readable. Therefor this change should be a no-op.
2013-04-07 13:43:17 +02:00
svdijk
7637d32f6f
Work around the z-fighting on some baseq2 maps (new cvar gl_zfix)
2013-03-16 16:47:57 +01:00
Yamagi Burmeister
e1903dd925
Change some qglTexParameterf to qglTexParameteri
...
Scott S. pointed out that some the qglTexParameterf calls should be
qglTexParameteri. I don't know if all this changes are correct (I'm
an openGL noob) but they shouldn't make thinks worse and "works for me".
2013-03-10 10:20:42 +01:00
Yamagi Burmeister
a76d7d5cfb
The default video mode is 5 (640x480). Spotted by svdijk.
2012-11-14 21:12:21 +01:00
svdijk
1c0934f462
Game cleanup.
2012-11-07 21:10:48 +01:00
svdijk
8c8fba7421
Refresher cleanup.
2012-11-05 21:33:35 +01:00
Yamagi Burmeister
5c217771cb
Use correct include path on OS X
...
This path matches the libjpeg.framework we'll use to build the
binary releases.
2012-11-04 09:23:25 +01:00
Yamagi Burmeister
687ca61dfa
Fix gl_swapinterval
2012-10-06 09:14:12 +02:00
Yamagi Burmeister
ba10009aa5
Add support for Mac OS X
...
These are the code changes and Makefile changes necessary to build and
run Yamagi Quake II on Max OS X. OS X 10.6 or higher is required, older
version may work but we cannot guarantee it. The documentation will be
added in another commit. This patch was contributed by W. Beser, I made
only some small cosmetical changes.
2012-09-14 11:21:02 +02:00
Yamagi Burmeister
602dd1af6f
Connect non-base OpenGL function by calling wglGetProcAddress() on Windows
...
This is necessary since non-base OpenGL functions can't be connected by
calling the standard GetProcAddress() on Windows. To archive this the
old qwglGetProcAdress() is renamed into GetProcAdressGL() and a new
function pointer qwglGetProcAdress is introduced. On unixoid System it's
NULL and on Windows connected to wglGetProcAddress(). If it's NULL the
system wide function is called, if not the function Pointer is used.
2012-08-03 15:14:45 +02:00
Yamagi Burmeister
f1420ffe75
Use correct default mode
2012-08-02 14:47:18 +02:00
Yamagi Burmeister
c6eaf5c876
Mobe LIBGL makro to common.h and replace all hardcoded libGL calls with it
2012-08-02 14:06:32 +02:00
Yamagi Burmeister
f89bb3265e
Combine qgl.c glwindow.h into one generic file
2012-08-01 15:51:39 +02:00
Yamagi Burmeister
6f719f4c7b
Reformat the refresher
2012-07-21 14:09:45 +02:00
Yamagi Burmeister
6b7bc06074
opengl32.dll is the default gldriver on Windows
2012-06-04 13:13:14 +02:00
Yamagi Burmeister
0d46fed529
Add Windows stuff
...
This code was taken from ioQuake2 and altered for inclusion in Yamagi
Quake II
2012-06-04 12:41:29 +02:00
Yamagi Burmeister
d0146dc4d5
Hide native JPEG and TGA loading functions behind RETEXTURE
2012-06-04 12:40:58 +02:00
Yamagi Burmeister
b42f208fd0
Include windows.h in refresh/header/local.h
2012-06-04 12:26:49 +02:00
Yamagi Burmeister
51ca0ca673
Define missing OpenGL extensions for Windows
...
While this is not the 100% correct way, it's much cleaner than just
importing th whole header files.
2012-06-04 11:46:08 +02:00
Yamagi Burmeister
41a704a13e
Do not turn stack address into a global variable
2012-06-04 09:13:29 +02:00
Yamagi Burmeister
e9c90e16a9
Change atoi() to strtol()
2012-06-04 09:13:28 +02:00
Yamagi Burmeister
f9837b9130
Initialize variables (they may be used uninitialzed further down below)
2012-06-01 17:59:00 +02:00
Yamagi Burmeister
0e1520d29a
Remove dead code and assignments
2012-06-01 17:05:40 +02:00
Yamagi Burmeister
b6325d7858
Remove unused variables and dead code (patch submitted by Christoph
...
Mallon)
2012-04-30 10:02:58 +02:00
Christoph Mallon
ab034114b4
Whitespace fixes.
2012-04-30 08:25:59 +02:00
Daniel Gibson
965fedf9ae
It's X11GAMMA with 2 "m".
2012-04-28 20:04:24 +00:00
Yamagi Burmeister
38943b3573
Print build options at startup
2012-04-25 09:50:06 +00:00
Yamagi Burmeister
92da6ed580
Hind retexturing support behind RETEXTURE
2012-04-25 08:59:40 +00:00
Yamagi Burmeister
b6bb97e223
- add support for big endian CPUs
...
- enable the build on SPARC64
- add runtime-requirements for SPARC64
- bump version number to 4.10
2012-04-16 06:54:48 +00:00
Yamagi Burmeister
9339d89bdf
Provide backward compatiblity with libjpeg v6
2012-03-12 10:15:22 +00:00
Yamagi Burmeister
bb9126ae43
Convert GetPCXInfo and GetWalInfo into void functions
2012-03-12 10:00:07 +00:00
Yamagi Burmeister
643cb93e5f
Reformat pcx.c
2012-03-12 09:56:27 +00:00
Yamagi Burmeister
57b06a8bcf
Implement retexturing for PCX files
2012-03-12 09:54:04 +00:00
Yamagi Burmeister
d0133509e1
Provide the gl_retexturing CVAR to switch retexturing off. Default is
...
"1", retexturing enabled.
2012-03-12 09:31:33 +00:00
Yamagi Burmeister
48a0d6a50d
- Reformat wal.c
...
- Add a file header to wal.c
2012-03-12 09:23:44 +00:00
Yamagi Burmeister
1cc06e2841
Reformat the JPEG loader
2012-03-12 09:21:19 +00:00
Yamagi Burmeister
7db2d76833
Import the Quake III Arena TGA loader and replace out implementation
...
with it. The Q3A is about ~40% faster and supports more types of TGA
files, including bottom to top encoded images.
2012-03-12 09:16:59 +00:00
Yamagi Burmeister
43fcc8eb99
Scale the replacement textures to the size of the original texture
2012-03-12 08:53:22 +00:00
Yamagi Burmeister
9edf27f103
Reactor yesterdays work
2012-03-12 08:11:22 +00:00
Daniel Gibson
1d8109cbbc
Work in progress version of the retexterung support. The next step is to alter
...
r_LoadPic, so that it accepts realwidth and realheight as additional arguments
and uses them to manipualte image after uploading it into the vram.
2012-03-11 19:01:49 +00:00
Daniel Gibson
441c988b31
- Add JPEG support
...
- Refactor call to LoadTGA so it returns image_t * directly
2012-03-11 16:50:57 +00:00
Yamagi Burmeister
042ec93bfe
Rename r_lefthand to gl_lefthand to match the other renderer cvar. This
...
is a noop, since this is an internal cvar to exposed to the user.
2012-03-08 11:30:30 +00:00
Yamagi Burmeister
1f3ce73a75
Add gl_farsee (by Richard Allen)
2012-03-08 11:24:45 +00:00
Yamagi Burmeister
6b2ef052ef
Add a comment about GL_POINT_SMOOTH on Mesa3D
2012-02-12 16:53:41 +00:00
Yamagi Burmeister
f8a9f6ead4
- Define the values for point parameters in qgl.h. They should be
...
set by the OpenGL implementation somewhere in gl.h but apperently
the values are sometimes wrong...
- AND the particle color with 0xFF. This is a no-op with most
OpenGL implementations but may help Mesa3D. Suggest by
"hukaru" on IRC.
2012-02-09 16:30:17 +00:00
Yamagi Burmeister
0f7b422ded
- Switch multitexturing by default to 1
...
- Switch paletted textures (8 bit textures) to 0
2012-02-09 15:13:51 +00:00
Yamagi Burmeister
cf7d2645cc
Fix gl_ext_multitexturing set to 1
2012-02-09 15:11:35 +00:00
Yamagi Burmeister
2320693f6a
Change the default mode 4 aka "640x480". This should be saver than 3 aka
...
"640x400"
2011-12-06 13:26:12 +00:00