]> icculus.org git repositories - divverent/darkplaces.git/commit
made cprogs.dat builtin #303 (setproperty) accept 1 parm, in this case it will return...
authorvortex <vortex@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 16 May 2010 21:05:13 +0000 (21:05 +0000)
committervortex <vortex@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 16 May 2010 21:05:13 +0000 (21:05 +0000)
commit515c01976be481f5d06169f193a7527fd567e83c
tree42daacb75b2cb152e081ab3a9b5a36ab0845aa18
parent9f3a1752aad83c746b5a7bd554d4c7553fd92de4
made cprogs.dat builtin #303 (setproperty) accept 1 parm, in this case it will return a value of property stored in engine struct instead of setting it. Pretty useful with several viewports code + 2d drawing. Curently the only property that can't be returned is VF_VIEWPORT (will give a warning) as it stored in 2 vectors (VF_MIN and VF_SIZE). To use new feature define 2 more builtins:
float(float property) getproperty = #303;
vector(float property) getpropertyvec = #303;

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10197 d7cf8633-e32d-0410-b094-e92efae38249
clvm_cmds.c