Commit graph

349 commits

Author SHA1 Message Date
9e79bd1c40 Add color_3f & color_4f type aliases 2020-10-02 19:12:11 +03:00
b7950a0520 Simple renderer supports textures 2020-09-30 16:22:08 +03:00
3a3d93c7db Add signed & two-component pixel traits 2020-09-30 16:21:16 +03:00
5079bcd127 Remove render_to_texture since it's almost useless 2020-09-30 16:17:33 +03:00
f01219c4e7 Add 3D and 1D textures 2020-09-30 07:28:44 +03:00
e42c5dc054 Add a simple colored renderer 2020-09-29 19:20:17 +03:00
4e37e7a54f Add common generic colors 2020-09-29 19:20:02 +03:00
aaf6ce7652 Fix indexed mesh loading from simplices 2020-09-29 19:19:22 +03:00
8eb134908b Introduce gfx::drawable interface 2020-09-29 19:19:20 +03:00
d40ec7c0ca Fix netpbm parsing 2020-09-28 18:51:49 +03:00
631a720e56 Fix 3d line drawing 2020-09-28 14:10:51 +03:00
e73da04a31 Add 3D line painting 2020-09-27 19:40:22 +03:00
dbc429eaa7 Support 3D text in painter 2020-09-27 19:14:50 +03:00
4a583d092c Add Wavefront OBJ file parser 2020-09-25 23:16:20 +03:00
44f293c023 Fix instanced normalized mesh attributes 2020-09-25 17:19:36 +03:00
64751170cb Implement instanced meshes & matrix attributes 2020-09-25 11:36:18 +03:00
aedd41ae7f Fix mesh move constructor & assignment bugs 2020-09-25 11:36:00 +03:00
616b7cfce5 Add OpenGL error reporting 2020-09-25 11:34:27 +03:00
8877f6dedd Redesign gfx::mesh: stores primitive type, supports loading from pointers & simplices (deduces primitive type in the latter case) 2020-09-24 12:45:25 +03:00
e53d5fba13 Add texture_2d wrap options 2020-09-23 21:56:40 +03:00
5f422f1452 Use non-normalized texture coordinates for text & add more space between font glyphs 2020-09-21 21:53:56 +03:00
d2d88ba7c5 Add 'psemek-' prefix to all psemek targets 2020-09-21 09:04:40 +03:00
ae282d796c Implement packaging for windows 2020-09-19 11:51:51 +03:00
18ef177b78 Prefer LEGACY OpenGL in CMake 2020-09-14 15:30:30 +03:00
d250becf43 Fix missing includes 2020-09-14 11:32:33 +03:00
40324d6db9 Add gfx::lerp for uint8 colors 2020-09-13 19:56:43 +03:00
8922399c74 Add float <-> uint8 color conversions 2020-09-13 16:39:29 +03:00
c7dba5eef2 Add pedantic warnings to CMake & fix all warnings 2020-09-13 13:03:31 +03:00
9aac943efd Fix min filter for painter font 2020-09-13 12:17:43 +03:00
6844a01a8f Make gfx::pixmap an alias to 2D util::array 2020-09-10 18:23:56 +03:00
6e42502873 Support explicit padding in mesh vertices 2020-09-10 11:06:10 +03:00
d7e0599556 Simplify setting texture filters & add anisotropic filtering 2020-09-10 11:03:25 +03:00
8a37d29b5e Add EXT_texture_filter_anisotropic to OpenGL loader 2020-09-10 11:01:24 +03:00
78fd6db86c Add axes & sphere drawing for gfx::painter 2020-08-31 09:58:59 +03:00
eb67ee846d Implement simple text rendering in gfx::painter 2020-08-30 21:27:34 +03:00
3d3e6c583b Refactor gfx::painter methods 2020-08-30 21:23:33 +03:00
e0c67d8043 Fix pixel attributes (std::array -> geom::vector) 2020-08-30 21:20:24 +03:00
dba0c78daf Support reading PBM images & fix all Netpbm readers 2020-08-30 21:20:01 +03:00
1590ec4ece Move gfx/source/gfx -> gfx/source 2020-08-30 10:32:34 +03:00
08ab8c00a7 Add simple painter helper (wip) 2020-08-30 09:08:12 +03:00
fd26d8a3a3 Fix shader program creation 2020-08-30 08:46:01 +03:00
532ac6fdf5 Fix mesh attribute stride calculation 2020-08-30 08:45:44 +03:00
30744dadeb Support std::array mesh attributes 2020-08-30 08:45:11 +03:00
2d6b947809 Move pixmap from util to gfx 2020-08-30 08:44:53 +03:00
0424bae480 Remove gfx::vertex, setup meshes using attributes directly 2020-08-28 11:15:49 +03:00
f69fb7299e Add app library 2020-08-28 11:14:40 +03:00
beed7753d6 Add a 9x12 font to gfx 2020-08-28 09:30:04 +03:00
211b9d7342 Properly destroy shaders & programs 2020-08-27 16:54:04 +03:00
549f2ada41 Add util, geom, cg, pcg & gfx libs 2020-08-27 13:36:16 +03:00