1
0
Fork 0
mirror of https://github.com/bjornbytes/lovr.git synced 2024-07-02 12:33:52 +00:00
Commit graph

768 commits

Author SHA1 Message Date
bjorn 22a8152eb5 Fix normal matrix; 2017-08-26 18:36:30 -07:00
bjorn c6c29e3895 Fix strange font cast issue; 2017-08-26 17:15:53 -07:00
bjorn 773abf26ae Fix bug with mesh mapping; 2017-08-25 21:18:22 -07:00
bjorn 9fd4030f47 Tweak sphere coordinates; 2017-08-15 21:21:49 -07:00
bjorn e4a7c6bb47 Fix WebVR; 2017-08-15 01:05:18 -07:00
bjorn 3f875118a9 Fix shader issues; 2017-08-13 21:03:11 -07:00
bjorn 2d0e849686 Fix lovr.getOS for Linux; 2017-08-13 16:49:10 -07:00
bjorn 33c54efbed Use touchpad for touch joystick; 2017-08-13 04:35:49 -07:00
bjornbytes eea960df8c Support Touch controllers; 2017-08-12 22:58:59 -07:00
bjornbytes 5bf174b37d Use enum for lovrHeadsetGetType; 2017-08-12 21:35:37 -07:00
bjornbytes b843fc3dbe Return proper headset name for OpenVR backend; 2017-08-12 21:13:57 -07:00
bjornbytes 3c3076f8c4 Fix VR rendering; 2017-08-12 20:43:23 -07:00
bjorn 0311232ae1 Add lovrModel and lovrView matrices; 2017-08-10 22:23:19 -07:00
bjorn 74f585ca8d Use lovrAssert and lovrThrow for better errors; 2017-08-10 01:05:04 -07:00
bjorn 7f1d441cdf Better error handling system;
Mom's spaghetti.
2017-08-10 00:45:19 -07:00
bjorn 3cd245f2b0 Window customization via conf.lua; 2017-08-09 20:02:02 -07:00
bjorn c69d6a72d8 Mention ddsparse; 2017-08-09 01:57:18 -07:00
bjorn 1d82277173 Fix mesh index buffer binding; 2017-08-09 01:31:25 -07:00
bjorn 3143c87197 Fix issues with framebuffers; 2017-08-09 01:09:19 -07:00
bjorn b94bc558fc Fix fullscreen quads; 2017-08-09 00:59:04 -07:00
bjorn 6c316c7587 Fix Shader bugs; 2017-08-09 00:56:13 -07:00
bjorn 9dd9678077 Fix default font bug; 2017-08-08 23:49:17 -07:00
bjorn 9f6f993903 Fix Mesh; 2017-08-08 22:58:11 -07:00
bjorn c76df39407 Organize lovrGraphicsReset; 2017-08-08 22:39:00 -07:00
bjorn 60867925e4 Move unused header includes; 2017-08-08 22:34:23 -07:00
bjorn f91366aa96 Remove old color macros; 2017-08-08 22:31:27 -07:00
bjorn d849f2429c Everything is probably broken; 2017-08-08 21:10:56 -07:00
bjorn 76f94e8ade Rename primitive data structures; 2017-08-08 18:57:41 -07:00
bjorn 88a32fd951 Simplify Skybox stuff; 2017-08-08 18:52:28 -07:00
bjorn 45618f819e Fix Skyboxes; 2017-08-08 18:24:29 -07:00
bjorn 58931f01e2 Allow lovr.graphics.setFont(nil); 2017-08-08 18:01:39 -07:00
bjorn abbe5e36d0 Canvas state is internal; 2017-08-08 02:20:55 -07:00
bjorn c89301c284 Texture is internal state; 2017-08-08 02:14:50 -07:00
bjorn fe570e19f1 Diff vao, vbo, and ibo; 2017-08-08 02:13:07 -07:00
bjorn dfd0926fab Diff framebuffer; 2017-08-08 02:05:30 -07:00
bjorn ef58eea4b8 Projection is transform state; 2017-08-08 01:37:23 -07:00
bjorn 6077cae95a Font state; 2017-08-08 01:36:29 -07:00
bjorn 80c9d7f4d8 Shader state; 2017-08-08 01:33:52 -07:00
bjorn 047fe412eb rm lovr.texture.bind; 2017-08-08 01:33:52 -07:00
bjorn 03c01cb97a Use access bits better when mapping Meshes; 2017-08-08 01:33:52 -07:00
bjorn 3da48027ce Use struct for shape state; 2017-08-08 01:33:52 -07:00
bjorn b65673bc3f Color object; 2017-08-08 01:33:52 -07:00
bjorn 9efa89768c Organize graphics state; 2017-08-08 01:33:52 -07:00
bjorn ef06a19fa4 Refactor texture filter structure; 2017-08-08 01:33:52 -07:00
bjorn bb2ec5b49c No pointers for CanvasState; 2017-08-08 01:33:52 -07:00
bjorn f649a50264 rm lovrGraphicsSetPerspective; 2017-08-08 01:33:52 -07:00
bjorn 38c5342d8a Private lovrGraphicsEnsureFont; 2017-08-08 01:33:52 -07:00
bjorn 7f80a8577f Mesh cleanup; 2017-08-08 01:33:52 -07:00
bjorn ce0d2746fd State diff for Mesh:setTexture; 2017-08-08 01:33:52 -07:00
bjorn 1402213029 Clean up system limits; 2017-08-08 01:33:52 -07:00
bjorn fd176a608a Private graphics primitive functions; 2017-08-08 01:33:52 -07:00
bjorn 0e474ad6af Reorganize lovrFontPrint; 2017-08-08 01:33:52 -07:00
bjorn 6b0f903b2e rm lovr.graphics.getColorMask; rm lovr.graphics.setColorMask; 2017-08-08 01:33:52 -07:00
bjorn ed25eef2d3 rm lovr.graphics.getScissor; rm lovr.graphics.setScissor; 2017-08-08 01:33:52 -07:00
bjorn a652036111 Use headset offset in error message; 2017-08-07 00:01:12 -07:00
bjorn 3de7c4492c Add missing API function; 2017-08-06 23:58:14 -07:00
bjorn fb10cf6f2a Fix WebVR; 2017-08-06 23:58:14 -07:00
bjorn 8b88ed1c46 1.7m default; 2017-08-06 23:58:14 -07:00
bjorn 9650524e53 Fix origin type boolean check; 2017-08-06 23:58:14 -07:00
bjorn 42a3444fd8 HeadsetOrigin; conf.headset.offset; 2017-08-06 23:58:14 -07:00
bjorn 1c3aa7a996 Allow disabling the graphics module; 2017-08-05 00:33:07 -07:00
bjorn b5a58e31f1 Declare secret OpenVR functions; 2017-08-03 00:57:52 -07:00
bjorn 4e81bc6cd9 Fix Linux glad include; 2017-08-03 00:57:47 -07:00
bjorn b4513d5ca6 Fixes for lovr.filesystem on Linux; 2017-08-03 00:57:28 -07:00
bjorn b55979936f Simplify l_lovrGraphicsSetBackgroundColor; 2017-08-01 13:19:36 -07:00
bjorn 146d037cae Simplify lovrGraphicsClear; 2017-08-01 13:11:32 -07:00
bjorn 48733f87c4 Just use EMCSRIPTEN instead of LOVR_WEB; 2017-08-01 12:16:09 -07:00
bjorn 94355db2b5 Remove font shader discard; 2017-07-31 02:43:04 -07:00
bjorn 416f6f7216 Default to LEQUAL CompareMode; 2017-07-31 02:42:44 -07:00
bjorn 0e470a9088 Pass correct arguments to webvr sittingToStanding; 2017-07-31 02:42:00 -07:00
bjorn 6a13ac5ee1 Don't include glad on web; 2017-07-31 02:41:44 -07:00
bjorn 8464463d4e Set default texture filter before creating texture; 2017-07-31 02:41:13 -07:00
bjorn 32e5c76566 Fix windows compilation; 2017-07-27 20:19:39 -07:00
bjorn ef537e99d4 Math module random functions; 2017-07-26 22:46:31 -07:00
bjorn 8b34330079 RandomGenerator; 2017-07-26 22:46:31 -07:00
bjorn 39ba6d3f12 Add trigger ControllerButton; 2017-07-24 23:17:00 -07:00
bjorn 059c5d3ef2 Fix bugs with font textures; 2017-07-23 23:22:51 -07:00
bjorn d78e986a05 Fix compilation issues; 2017-07-23 23:14:28 -07:00
bjorn 8bf2048cf2 Use header files for lua libraries; 2017-07-23 23:03:13 -07:00
bjorn cb7ac8e656 Add enet; 2017-07-23 23:03:13 -07:00
bjorn 112e6f8f00 lovr.math.lookAt;
Returns the angle/axis rotation for looking at a point.
2017-07-23 22:38:33 -07:00
bjorn 6a8e22f5be Don't check for ubiquitous extension; 2017-07-23 16:24:43 -07:00
bjorn e40f23c649 Formatting; 2017-07-23 16:24:43 -07:00
bjorn d3ac98e248 rm unused code; 2017-07-23 16:24:43 -07:00
bjorn a1007a1545 Add anisotropy system limit; 2017-07-23 16:24:43 -07:00
bjorn 7d31410c8c New Texture filter modes; lovr.graphics.setDefaultFilter; 2017-07-23 16:24:43 -07:00
bjorn f1141664b6 Mipmap generation; 2017-07-23 16:24:43 -07:00
bjorn 344320a19d Parse DDS; 2017-07-23 16:24:43 -07:00
bjorn b25d345e72 Add compressed texture formats; 2017-07-23 16:24:43 -07:00
bjorn b76480f9f2 Add texture compression and filter extensions; 2017-07-23 16:24:43 -07:00
bjorn 2a05fb4033 Refactor TextureFormat; 2017-07-23 16:24:43 -07:00
bjorn 12700f9785 Fix font shader in WebGL; 2017-07-22 16:57:09 -07:00
bjorn abaecb7f60 Font fixes; 2017-07-18 21:48:08 -07:00
bjorn d8047cdeff rm FORMAT_LUMINANCE_ALPHA; 2017-07-19 07:00:11 +09:00
bjorn c750b64b1b Cleanup; 2017-07-19 07:00:11 +09:00
bjorn 8ad3e64a2d Font shader; 2017-07-19 07:00:11 +09:00
bjorn 93c286afb6 Glyph padding; 2017-07-19 07:00:11 +09:00
bjorn 800d07a0de Use msdfgen; 2017-07-19 07:00:11 +09:00
bjorn c518cadcf7 Cleanup; 2017-07-19 07:00:11 +09:00
bjorn 05dd988cb8 Fix undefined behavior with custom fonts; 2017-07-19 07:00:11 +09:00