spherallic
412381da4c
Make credits font functions use the generalized functions.
2022-02-05 14:40:05 +01:00
spherallic
908fb8b026
Add fontdef_t struct, move the width and height variables there.
2022-02-03 13:41:24 +01:00
spherallic
7b3c89c989
Separate scale into pscale and vscale.
2022-02-03 12:03:44 +01:00
spherallic
1630364775
Turn the old string drawing functions into defines.
2022-01-27 16:52:44 +01:00
spherallic
df7efe29cb
Clean up string width-related functions.
2022-01-27 16:01:28 +01:00
spherallic
3013c8aa42
Third pass for generalized font drawer:
...
- Added AtFixed version, which also takes scale into account when
calculating space widths & newline height
- Made some more string drawing functions use the generalized version
2022-01-27 15:22:36 +01:00
spherallic
41cb8cc494
Second pass for generalized font drawer:
...
- Added width/height parameters for spacing stuff
- Made some string drawing functions use the generalized version.
2022-01-25 23:55:18 +01:00
spherallic
39a0bb4df8
First attempt at string drawing functions that take a supplied font.
2022-01-21 16:17:53 +01:00
sphere
3802f601a9
blentran part 1: Flag changes & semibright support.
2021-12-05 00:48:21 +01:00
Tatsuru
eec765749b
Merge branch 'drawcroppedpatch-improvements' into 'next'
...
V_DrawCroppedPatch(...) Lua exposure and improvements
See merge request STJr/SRB2!1316
2021-09-10 16:14:38 +00:00
LJ Sonic
d325c7e6d3
The year is 2021
2021-05-07 17:45:56 +02:00
Zwip-Zwap Zapony
029e79024b
V_DrawCroppedPatch Lua exposure and improvements
...
Separated X and Y scale, and added colormap argument
Added V_*SCALEPATCH and V_PERPLAYER flags support
Made sx,sy,w,h into fixed-point values
Exposed to Lua as "v.drawCropped(...)"
(Also fix HWR_DrawStretchyFixedPatch ignoring vscale without pscale)
2020-12-11 23:43:38 +01:00
Jaime Passos
b15bbd505c
Merge branch 'next' into patch-stuff-again-2
2020-10-10 17:01:10 -03:00
SteelT
a033f482be
Merge branch 'pictureformats' into 'next'
...
PNG conversion refactoring
See merge request STJr/SRB2!675
2020-09-10 15:58:18 -04:00
Jaime Passos
4e437076c1
Use color look-up table for PNG conversion
2020-09-10 02:10:31 -03:00
Jaime Passos
f24647dc4d
Change method of color look-up table generation
2020-09-10 01:43:46 -03:00
James R
bcb0854db8
.
2020-08-14 22:38:15 -07:00
James R
5ccafe0314
REMOVE THE LAST OF CV_ALLCAPS
2020-08-14 21:01:41 -07:00
Jaime Passos
78cc4a78d0
Refactor renderer switching
2020-08-14 22:27:16 -03:00
SwitchKaze
b37c73b008
Make colors UINT16, increase color freeslots to 1024
2020-05-23 19:35:36 -05:00
sphere
0287c6956e
Fix some errors and add some comments. Also, actnum is not an INT32.
2020-05-12 17:20:28 +02:00
Steel Titanium
76f26cda24
Merge branch 'master' into next
2020-02-21 21:01:29 -05:00
James R
62d943b609
Merge branch 'thin-fixed' into 'next'
...
Add more strings (and respective functions) for v.drawString().
See merge request STJr/SRB2!770
2020-02-20 19:27:01 -05:00
James R
7060083db5
Update copyright year to 2020
2020-02-19 14:08:45 -08:00
GoldenTails
fe17933156
Make V_DrawCenteredSmallThinString() a less precise wrapper for V_DrawCenteredSmallThinStringAtFixed() for new "small-thin-center" option in v.drawString()
2020-02-01 11:01:39 -06:00
GoldenTails
7d9f138160
Make V_DrawRightAlignedSmallThinString() a less precise wrapper for V_DrawRightAlignedSmallThinStringAtFixed() for new "small-thin-right" option in v.drawString()
2020-02-01 11:01:22 -06:00
GoldenTails
b2b4c4c79e
Create V_DrawCenteredSmallThinStringAtFixed() for new "small-thin-fixed-center" option in v.drawString()
...
Thankfully "center" is just "right" but with the X offset divided by 2.
2020-02-01 11:01:03 -06:00
GoldenTails
4cbcb68795
Create V_DrawRightAlignedSmallThinStringAtFixed() for new "small-thin-fixed-right" option in v.drawString()
...
You guys have no idea how long this took to code.
2020-02-01 11:00:45 -06:00
GoldenTails
75d94c6c1a
Create V_DrawSmallThinStringAtFixed() for new "small-thin-fixed" option in v.drawString()
...
I removed the limitation present in "small-thin" by converting all relevant variables to fixed_t's and using FixedMul() and FixedDiv() when necessary. Who'da thunk it would actually work?
2020-02-01 11:00:02 -06:00
GoldenTails
a216736ef4
Create V_DrawCenteredSmallStringAtFixed() for new "small-fixed-center" option in v.drawString()
2020-02-01 10:59:38 -06:00
GoldenTails
5f56d19a43
Create V_DrawRightAlignedSmallStringAtFixed() for new "small-fixed-right" option in v.drawString()
2020-02-01 10:59:21 -06:00
GoldenTails
f7085fc171
Create V_DrawCenteredThinStringAtFixed() for new "thin-fixed-center" option in v.drawString()
2020-02-01 10:58:55 -06:00
GoldenTails
f1655d32f5
Fixed V_DrawRightAlignedThinStringAtFixed declaration to use fixed_t for positioning.
2020-02-01 10:58:19 -06:00
GoldenTails
cb5c90fc40
Create V_DrawRightAlignedThinStringAtFixed() for new "thin-fixed-right" option in v.drawString()
...
These function names are starting to become rediculous...
2020-02-01 10:55:54 -06:00
GoldenTails
6527b5d16b
Create V_DrawSmallThinString() for new "small-thin" option in v.drawString()
...
Note this has some major limitations to prevent squished text. It defaults to using V_MONOSPACE|V_OLDSPACING and you cannot change the size of characters. V_6WIDTHSPACE seems to act exactly the same as V_OLDSPACING too.
2020-02-01 10:53:06 -06:00
GoldenTails
9f50b6ef73
Create V_DrawCenteredStringAtFixed() for new "fixed-center" option in v.drawString()
2020-02-01 10:51:43 -06:00
GoldenTails
b0e66874d3
Fixed v_video.h declaration for V_DrawRightAlignedStringAtFixed()
2020-02-01 10:51:31 -06:00
GoldenTails
dc1871a74f
Create V_DrawRightAlignedStringAtFixed() for new "fixed-right" option in v.drawString()
2020-02-01 10:50:57 -06:00
GoldenTails
426ccc9203
Create V_DrawCenteredThinString() for new "thin-center" option in v.drawString()
2020-02-01 10:50:50 -06:00
GoldenTails
df15ad82d2
Create V_DrawCenteredSmallString() for new "small-center" option in v.drawString()
2020-02-01 10:50:46 -06:00
GoldenTails
63721b99cf
Create V_DrawSmallStringAtFixed() for new "small-fixed" option in v.drawString()
2020-02-01 10:43:04 -06:00
GoldenTails
93b64a8d7d
Create V_DrawThinStringAtFixed() for new "thin-fixed" option in v.drawString()
2020-02-01 10:42:15 -06:00
Jaime Passos
636093a59d
Fix color LUT using the wrong palette
2020-01-27 13:55:13 -03:00
Jaime Passos
deee2a0d6f
I was using V_GetColor in a lot of places I shouldn't have, making the game look wrong with a non-default colour profile.
...
Though, I left R_RainbowColormap alone.
2020-01-05 03:20:05 -03:00
Jaime Passos
c3f0e6aa44
Avoid recreating the color LUT mid-recording-frame
2019-12-17 15:37:43 -03:00
Jaime Passos
3d08664de4
Merge remote-tracking branch 'sonicteamjuniorheadquarters/master' into gl_gifs
2019-12-17 15:14:22 -03:00
Jaime Passos
4e814cd424
FINALLY, COLORCUBIUM
2019-12-12 23:18:39 -03:00
Jaime Passos
c578cee0b1
Merge remote-tracking branch 'sonicteamjuniorheadquarters/master' into gl_gifs
2019-12-12 01:39:46 -03:00
Steel Titanium
d415cd5c6d
Update copyright date on source files
2019-12-06 13:49:42 -05:00
Alam Ed Arias
c432f86624
change from shifting bits to multi for a OLD video function marco
2019-12-04 10:43:33 -05:00