Glenn Maynard
34b29827d0
Prefer to let OpenGL assign attribute locations, as in
...
http://developer.download.nvidia.com/opengl/glsl/glsl_release_notes.pdf
"Vertex Attribute Aliasing"
2007-02-18 10:37:06 +00:00
Glenn Maynard
2da126ba59
glGetAttribLocationARB
2007-02-18 10:33:04 +00:00
Glenn Maynard
b67e19b09d
print the extension string more intelligently. I'm tired of a two-page long line in every info.txt.
2007-02-17 14:14:44 +00:00
Glenn Maynard
c06c35e1cb
bindings
2007-02-17 06:02:58 +00:00
Glenn Maynard
396e9ff168
don't use Font in lua
2007-02-16 21:57:51 +00:00
Glenn Maynard
ae45448ade
use File in Lua; use Font in XML, for compatibility. Only XML's paths
...
need manual lookups.
2007-02-16 07:55:59 +00:00
Glenn Maynard
0bb594d32f
use LoadFont
2007-02-16 07:52:05 +00:00
Glenn Maynard
5448e98615
use LoadFont
2007-02-16 07:46:43 +00:00
Glenn Maynard
2158dc6c23
add LoadFont
2007-02-16 07:41:09 +00:00
Glenn Maynard
74838465c3
fix "Font" attribute
2007-02-16 06:34:46 +00:00
Glenn Maynard
7e1df89ffc
simplify
2007-02-16 03:37:49 +00:00
Glenn Maynard
0db3211c34
simplify SystemMessage
2007-02-16 02:25:24 +00:00
Glenn Maynard
69f2604bb7
unused
2007-02-16 00:47:20 +00:00
Glenn Maynard
1f41f7ac69
cleanup
2007-02-16 00:45:27 +00:00
Glenn Maynard
29f5cc2fc2
move most of ScreenSystemLayer into Lua
2007-02-15 11:31:29 +00:00
Glenn Maynard
67f372af09
SideJoinedP1, SideJoinedP2 -> PlayerJoined(P1)
...
move most of ScreenSystemLayer into Lua
2007-02-15 11:30:22 +00:00
Glenn Maynard
ed3dc0841e
bind GetTextureCoordRect
2007-02-15 11:28:11 +00:00
Glenn Maynard
7319b284ab
cacept paths like other actors
2007-02-15 11:27:17 +00:00
Glenn Maynard
bfb74b587d
bind GetPathF
2007-02-15 11:24:05 +00:00
Glenn Maynard
db273ef711
bind GetCurrentSystemMessage
2007-02-15 11:23:26 +00:00
Glenn Maynard
5fa980a7a3
fix assertion. PushAttrValue always pushes something; if no value,
...
then it pushes nil (like lua_gettable)
2007-02-15 11:22:25 +00:00
Glenn Maynard
560bbe278a
bind SetCustomImageRect
2007-02-14 03:10:37 +00:00
Glenn Maynard
04d05b898d
simplify
2007-02-14 02:43:29 +00:00
Glenn Maynard
7625525b81
DeleteTexture(0) noop
2007-02-14 02:01:33 +00:00
Glenn Maynard
3979202ce0
add EffectMode_ColorBurn
2007-02-14 01:59:41 +00:00
Glenn Maynard
8ac9571d1e
add EffectMode
2007-02-14 01:51:50 +00:00
Glenn Maynard
d96b24bd2e
shader bindings
2007-02-14 00:13:42 +00:00
Glenn Maynard
abd0f83cc8
short circuit on delete default texture
2007-02-14 00:07:55 +00:00
Glenn Maynard
3595207e8b
bind glClientActiveTextureARB
2007-02-14 00:02:36 +00:00
Glenn Maynard
a5a907af0e
bind Draw
2007-02-13 23:59:59 +00:00
Glenn Maynard
5e36201c4c
add GetChildren
2007-02-13 23:58:56 +00:00
Glenn Maynard
1cfcee0de7
bool
2007-02-13 23:36:34 +00:00
Glenn Maynard
4b1f1fcd2c
add Sprite::SetTexture
2007-02-13 23:34:51 +00:00
Glenn Maynard
304402645c
add GetTexture
2007-02-13 23:27:51 +00:00
Glenn Maynard
0edbf07e08
clear world matrix
2007-02-13 23:09:31 +00:00
Glenn Maynard
17b3abc3ba
bPreserveTexture
2007-02-13 23:00:18 +00:00
Glenn Maynard
37d7c06c19
fix camera matrix
2007-02-13 22:27:26 +00:00
Glenn Maynard
6f3c30e142
bindings
2007-02-13 22:25:49 +00:00
Glenn Maynard
c7501e8e5c
capitalize
2007-02-13 22:12:59 +00:00
Glenn Maynard
183149ee2a
fix non-lua quads
2007-02-13 22:09:55 +00:00
Glenn Maynard
238a0d235f
remove hack
2007-02-13 22:05:10 +00:00
Glenn Maynard
a5709f390f
set hidden flag on blank actors
2007-02-13 22:03:31 +00:00
Glenn Maynard
eeeda2a236
CreateTextureDefault
2007-02-13 09:55:33 +00:00
Glenn Maynard
c3a0714e4a
make Quad less special. Create a "default" texture object for the
...
"no texture" properties. This way, loaded sprites always have a
texture loaded.
2007-02-13 07:39:49 +00:00
Glenn Maynard
bf6327ad00
don't access the low-level texture unnecessarily
2007-02-13 06:46:24 +00:00
Glenn Maynard
e9a04f81b3
make Sprite internals private
2007-02-13 06:40:14 +00:00
Glenn Maynard
6cb284496c
split out LoadStatesFromTexture
2007-02-13 06:34:29 +00:00
Glenn Maynard
7561b3b630
unneeded; done in TryVideoMode
2007-02-13 06:11:35 +00:00
Glenn Maynard
972cb25f97
when creating a new window for the first time, we have a new device
2007-02-13 06:09:46 +00:00
Glenn Maynard
5b4a7a6ac8
remove unused g_currentTextureUnit
2007-02-13 06:06:49 +00:00
Glenn Maynard
4a01ceaaa8
fix optimization
2007-02-13 06:05:51 +00:00
Glenn Maynard
5600e93d3a
add TextureUnit param to SetSphereEnvironmentMapping
2007-02-13 06:04:30 +00:00
Glenn Maynard
a9fd52cce0
add TextureUnit param to SetTextureWrapping
2007-02-13 05:56:24 +00:00
Glenn Maynard
863062f7d1
add TextureUnit param to SetTextureFiltering
2007-02-13 05:09:54 +00:00
Glenn Maynard
4acd7f3971
pull out glBlendFunc call
2007-02-13 05:01:25 +00:00
Glenn Maynard
2f18e94d49
remove unused
2007-02-13 04:59:18 +00:00
Glenn Maynard
ebb7189b88
add TextureUnit param to SetTextureMode
2007-02-13 04:59:05 +00:00
Glenn Maynard
9e94e85a35
remove compat
2007-02-13 04:15:50 +00:00
Glenn Maynard
4bff44a918
use SetTextureMode
2007-02-13 04:15:32 +00:00
Glenn Maynard
256a737d25
fix ShaderType not used
2007-02-13 04:03:17 +00:00
Glenn Maynard
4b707da08b
merge SetTextureMode functions
2007-02-13 04:02:08 +00:00
Glenn Maynard
d7833bb019
add TextureMode
2007-02-13 03:59:00 +00:00
Glenn Maynard
0efd475ee0
remove BPMDisplay
2007-02-12 23:24:19 +00:00
Glenn Maynard
ddcb3db96d
remove
2007-02-12 23:23:02 +00:00
Glenn Maynard
0387924fab
remove BPMDisplay from gameplay; not used
...
add SongBPMDisplay; use it if you want that
2007-02-12 23:22:50 +00:00
Glenn Maynard
d4f96aa3a6
load metrics on demand
2007-02-12 22:38:09 +00:00
Glenn Maynard
daf107d606
fix crash handler for stack overflwos
2007-02-12 08:03:24 +00:00
Glenn Maynard
f59c963eab
fix wrong actor order when creating more than 10 actors in Lua
2007-02-12 04:08:39 +00:00
Glenn Maynard
37932a8cc8
add FOREACH_LUATABLEI
2007-02-12 03:59:18 +00:00
Glenn Maynard
cefa128034
change XNode children to a vector.
...
This means the order of children is preserved.
It also means the name of each node isn't duplicated. This was
an opportunity for an inconsistent XNode tree. Nodes can now be
renamed after being inserted into a tree.
Searching for children by name isn't efficient. Use attributes for that.
2007-02-12 01:52:18 +00:00
Glenn Maynard
81fcea1950
const
2007-02-12 01:00:52 +00:00
Glenn Maynard
3c36b5389d
fix uncaught errors in VC8 triggering watson instead of our crash handler
2007-02-12 00:40:35 +00:00
Glenn Maynard
ba36cd8794
bind PlayerInfo
2007-02-12 00:03:38 +00:00
Glenn Maynard
8953786b8f
simpler, more flexible loading
...
Def.MeterDisplay {
Stream = LoadActor("...");
};
2007-02-12 00:02:58 +00:00
Glenn Maynard
fc444c1009
fix OptionRow
2007-02-11 22:49:02 +00:00
Glenn Maynard
62b5c145db
remove SetTextValue
2007-02-11 07:40:45 +00:00
Glenn Maynard
fc5c1cc295
simplify
2007-02-11 07:38:59 +00:00
Glenn Maynard
b0430161b9
Merge text values into attributes; use TEXT_ATTRIBUTE_NAME for
...
the text value.
This means that FOREACH_Attr will iterate over the text value.
Compare with TEXT_ATTRIBUTE_NAME if you explicitly don't want
that.
This is simpler; an XNode branches out in two places--attributes
and children--instead of three.
It also means that nodes without any text data actually don't
have any text data--the attribute simply doesn't exist. The
*TextValue functions are also no longer needed, though some
are left in now for compatibility (and maybe convenience).
2007-02-11 07:27:29 +00:00
Glenn Maynard
fb8e73ac58
SetValue, etc -> SetTextValue
2007-02-11 06:26:06 +00:00
Glenn Maynard
ee061be26a
I'm not sure why this ClearSubscribers was here; it's causing
...
metrics to not be loaded after a resolution change, because
the reload is optimized out by SwitchThemeAndLanguage.
(We may have loaded ThemeMetrics on demand in the
past.)
The reload needs to always happen, even though the theme
hasn't changed, since the theme load is affected by the
resolution; eg. upvalues in Lua scripts may have been
computed based on SCREEN_WIDTH.
2007-02-11 01:52:41 +00:00
Glenn Maynard
96caf97851
use FOREACH_Attr
2007-02-11 00:44:57 +00:00
Glenn Maynard
5772a41b92
use accessors
2007-02-11 00:38:27 +00:00
Glenn Maynard
b9e277d0e7
GetValue: return XNodeValue *
2007-02-11 00:33:53 +00:00
Glenn Maynard
5135b7b27c
use templated GetValue, not old RString GetValue()
2007-02-11 00:30:44 +00:00
Glenn Maynard
95fdd553de
remove Command="%function" syntax from XML. Use Lua directly.
2007-02-10 23:47:39 +00:00
Glenn Maynard
cb8e881099
on xml for backgroundEffects
2007-02-10 23:44:33 +00:00
Glenn Maynard
a15efb8e4a
xml->lua for files that use %
2007-02-10 23:39:38 +00:00
Glenn Maynard
76c9f9bf8b
lua
2007-02-10 23:22:17 +00:00
Glenn Maynard
98daa2535c
xml->lua for files that use %
2007-02-10 23:16:16 +00:00
Glenn Maynard
ebb4b3a340
xml->lua for files that use %
2007-02-10 22:52:28 +00:00
Glenn Maynard
2140b1d8c8
xml->lua for files that use %
2007-02-10 22:45:25 +00:00
Glenn Maynard
7d66e0bcfd
xml->lua for files that use %
2007-02-10 22:35:50 +00:00
Glenn Maynard
b9acd66239
xml->lua for files that use %
2007-02-10 22:28:07 +00:00
Glenn Maynard
070779520f
use accessors
2007-02-10 22:17:43 +00:00
Glenn Maynard
fcf121feb0
add PlayCommandNoRecurse to fix PlayCommand hack
2007-02-10 05:42:25 +00:00
Glenn Maynard
5e549c0437
cleanup
2007-02-09 05:15:35 +00:00
Glenn Maynard
98f9d9edaf
simplify
...
set size
2007-02-09 05:13:49 +00:00
Glenn Maynard
101bf0a85f
simplify
2007-02-09 04:45:54 +00:00
Glenn Maynard
9d7893fc69
cleanup masking
2007-02-09 04:38:15 +00:00
Glenn Maynard
edeb62afed
simplify
2007-02-09 04:36:51 +00:00