openclonk/src/object
Lukas Werling 6847e50e79 Implement setting shader uniforms from script (#1206)
Uniform variables are read from the "Uniforms" proplist set on Scenario
or on individual objects. Proplist keys are uniform names. Values can
either be an int or an array of one to four ints in C4Script. In GLSL,
the uniforms then need a matching type (int/ivec2/ivec3/ivec4). There is
no error reporting; uniforms are only set if both name and type match.

The implementation walks the "Uniforms" proplists on each Draw call. We
may need to cache the uniform maps if this turns out to be too slow.
2016-11-12 22:09:23 +01:00
..
C4Action.cpp Replace NULL by nullptr in C++ sources 2016-11-02 19:58:02 -04:00
C4Command.cpp Replace NULL by nullptr in C++ sources 2016-11-02 19:58:02 -04:00
C4Command.h Update all copyright notices for 2016 2016-04-03 20:24:42 +02:00
C4Def.cpp Replace NULL by nullptr in C++ sources 2016-11-02 19:58:02 -04:00
C4Def.h Replace NULL by nullptr in C++ sources 2016-11-02 19:58:02 -04:00
C4DefGraphics.cpp Replace NULL by nullptr in C++ sources 2016-11-02 19:58:02 -04:00
C4DefGraphics.h Replace NULL by nullptr in C++ sources 2016-11-02 19:58:02 -04:00
C4DefList.cpp Replace NULL by nullptr in C++ sources 2016-11-02 19:58:02 -04:00
C4DefList.h Replace NULL by nullptr in C++ sources 2016-11-02 19:58:02 -04:00
C4FindObject.cpp Replace NULL by nullptr in C++ sources 2016-11-02 19:58:02 -04:00
C4FindObject.h Replace NULL by nullptr in C++ sources 2016-11-02 19:58:02 -04:00
C4GameObjects.cpp Replace NULL by nullptr in C++ sources 2016-11-02 19:58:02 -04:00
C4GameObjects.h Replace NULL by nullptr in C++ sources 2016-11-02 19:58:02 -04:00
C4IDList.cpp Replace NULL by nullptr in C++ sources 2016-11-02 19:58:02 -04:00
C4IDList.h Replace NULL by nullptr in C++ sources 2016-11-02 19:58:02 -04:00
C4Id.cpp Qt Editor: More editor property types and functionality 2016-04-16 22:05:35 -04:00
C4Id.h Qt Editor: More editor property types and functionality 2016-04-16 22:05:35 -04:00
C4InfoCore.cpp Replace NULL by nullptr in C++ sources 2016-11-02 19:58:02 -04:00
C4InfoCore.h Replace NULL by nullptr in C++ sources 2016-11-02 19:58:02 -04:00
C4MeshAnimation.cpp Replace NULL by nullptr in C++ sources 2016-11-02 19:58:02 -04:00
C4MeshAnimation.h Replace NULL by nullptr in C++ sources 2016-11-02 19:58:02 -04:00
C4MeshDenumerator.cpp Replace NULL by nullptr in C++ sources 2016-11-02 19:58:02 -04:00
C4MeshDenumerator.h Replace NULL by nullptr in C++ sources 2016-11-02 19:58:02 -04:00
C4Movement.cpp Update all copyright notices for 2016 2016-04-03 20:24:42 +02:00
C4Object.cpp Implement setting shader uniforms from script (#1206) 2016-11-12 22:09:23 +01:00
C4Object.h Replace NULL by nullptr in C++ sources 2016-11-02 19:58:02 -04:00
C4ObjectCom.cpp Replace NULL by nullptr in C++ sources 2016-11-02 19:58:02 -04:00
C4ObjectCom.h Replace NULL by nullptr in C++ sources 2016-11-02 19:58:02 -04:00
C4ObjectInfo.cpp Replace NULL by nullptr in C++ sources 2016-11-02 19:58:02 -04:00
C4ObjectInfo.h Update all copyright notices for 2016 2016-04-03 20:24:42 +02:00
C4ObjectInfoList.cpp Replace NULL by nullptr in C++ sources 2016-11-02 19:58:02 -04:00
C4ObjectInfoList.h Update all copyright notices for 2016 2016-04-03 20:24:42 +02:00
C4ObjectList.cpp Replace NULL by nullptr in C++ sources 2016-11-02 19:58:02 -04:00
C4ObjectList.h Replace NULL by nullptr in C++ sources 2016-11-02 19:58:02 -04:00
C4ObjectMenu.cpp Replace NULL by nullptr in C++ sources 2016-11-02 19:58:02 -04:00
C4ObjectMenu.h Update all copyright notices for 2016 2016-04-03 20:24:42 +02:00
C4ObjectPtr.cpp Update all copyright notices for 2016 2016-04-03 20:24:42 +02:00
C4ObjectPtr.h Update all copyright notices for 2016 2016-04-03 20:24:42 +02:00
C4ObjectScript.cpp Replace NULL by nullptr in C++ sources 2016-11-02 19:58:02 -04:00
C4Sector.cpp Replace NULL by nullptr in C++ sources 2016-11-02 19:58:02 -04:00
C4Sector.h Replace NULL by nullptr in C++ sources 2016-11-02 19:58:02 -04:00
C4Shape.cpp Replace NULL by nullptr in C++ sources 2016-11-02 19:58:02 -04:00
C4Shape.h Prevent using USE_CONSOLE in lib{misc,c4script} 2016-10-22 17:42:23 +02:00