bjorn
4a47afca38
Organize api folder;
2019-05-19 00:31:42 -07:00
bjorn
ee27af1a85
graphics: forward declarations;
2019-04-05 04:59:14 -07:00
bjorn
85c51399a6
Fix MSVC warnings;
2019-03-17 00:58:13 -07:00
bjorn
90d6e2b407
Make binding functions static;
2019-02-17 14:52:22 -08:00
bjorn
bf89216997
Explicitly convert lua_Numbers to floats;
2019-01-29 22:04:04 -08:00
bjorn
ee7544eba8
ShaderBlock:getValue; Shader:send vector fixes;
...
Allows you to read back values from a ShaderBlock.
- This is also probably useful for Shaders.
- This creates SO MANY tables. It feels so bad to expose this. But
also it's the only way to read values back from a compute operation,
so it's pretty indispensable. In the future there could be a Blob
variant.
2019-01-16 10:02:44 -08:00
bjorn
90cacd03ca
Handle numbers more consistently in Lua API;
...
I still don't know if I should cast or not, but at least now things
will be consistently right or wrong.
2019-01-11 22:37:54 -08:00
bjorn
ea3a77a73a
Many batching improvements; Refactoring;
2019-01-04 18:01:01 -08:00
bjorn
2aadc9bde1
rm Transform;
2018-12-02 12:08:07 -08:00
bjorn
c7934b3b13
Update API to work with vectors;
2018-12-02 12:08:07 -08:00
bjorn
086a0030b1
Shader:send/ShaderBlock:send fills in nils with 0's;
2018-10-06 16:15:38 -07:00
bjorn
792834623c
api: more modular helper functions;
2018-09-27 18:38:44 -07:00
bjorn
924eb5fa0a
Shader:send: Add a missing break;
...
opps
2018-09-05 10:13:04 -07:00
bjorn
7a8abc80a2
Copy Transform objects more safely in Shader[Block]:send;
2018-09-05 04:22:12 -07:00
bjorn
7e1687ce6b
Fix Shader:sendImage;
2018-09-04 06:58:54 -07:00
bjorn
d2b6def5c2
Shader:sendImage;
...
Can be used to bind images with specific slices, mipmap levels,
and access hints.
2018-08-17 19:53:54 -07:00
bjorn
cab12ba945
Shader:setBlock accepts access hint;
2018-08-17 19:53:54 -07:00
bjorn
a18540a934
Proper validation of uniform texture types;
2018-08-13 17:03:39 -07:00
bjorn
9ce462a67f
Image uniforms;
2018-08-11 00:08:34 -07:00
bjorn
2cb6de47f2
Compute shader creation;
2018-08-11 00:08:33 -07:00
bjorn
78d9cc0031
Actually set shader uniforms;
2018-08-06 13:44:46 -07:00
bjorn
70b27bd846
Use new table shorthand for newShaderBlock formats;
...
Also luax_checkuniformtype and error message improvements.
2018-08-06 10:34:12 -07:00
bjorn
ce19599fec
Improve uniform error messages;
2018-08-02 05:04:40 -07:00
bjorn
4589ce66d0
luax_checkuniform supports samplers;
2018-08-02 05:04:40 -07:00
bjorn
2b093b5828
ShaderBlock:send; Helper function for reading uniforms;
2018-08-02 05:04:40 -07:00
bjorn
a4052430a4
Shader:getBlock; Shader:setBlock;
2018-08-02 05:04:40 -07:00
bjorn
a372abb810
Reorganize uniform/block data structures;
2018-08-02 05:04:40 -07:00
bjorn
d6daa885c8
Simplify luax_checktype and inheritance;
2018-07-24 21:15:07 -07:00
bjorn
8bf60b73ec
Add opengl header; Migrate relevant object implementations;
2018-07-17 17:21:14 -07:00
bjorn
57c8dfe146
Clean up includes;
2018-07-04 13:51:35 -07:00
bjorn
dd3644bafd
Add bounds checking to Shader:send with Blobs;
2018-03-12 13:27:14 -07:00
bjorn
d8c18f1535
Shader:send supports Blobs;
2018-03-12 11:25:28 -07:00
bjorn
8d49e05772
Don't cast floats to ints in Shader:send;
2018-01-09 20:55:14 -08:00
bjorn
1d20e49829
Move api header;
2017-12-10 12:41:43 -08:00
bjorn
6577133635
Canvases can be used anywhere Textures are;
2017-12-09 20:09:27 -08:00
bjorn
650f100b15
Fix bug where Shader:send uses incorrect number of values;
2017-12-08 13:04:43 -08:00
bjorn
2efe619317
Add Shader:hasUniform;
2017-10-22 15:58:56 -07:00
bjorn
54533351bb
Generalize Shader to support more types of uniforms;
2017-10-21 13:39:50 -07:00
bjorn
0311232ae1
Add lovrModel and lovrView matrices;
2017-08-10 22:23:19 -07:00
bjorn
fbc9805ab1
Allow custom skybox shaders;
2017-03-30 18:54:39 -07:00
bjorn
fce7746b16
Simplify api structure;
2017-03-11 03:08:07 -08:00
bjorn
fa74254e64
Rename lovr to api;
2017-03-11 02:25:39 -08:00