Commit graph

2106 commits

Author SHA1 Message Date
007fd12240 Rename cross(v,v) to ort(v...), cross left as convenience 2020-09-13 10:34:50 +03:00
6844a01a8f Make gfx::pixmap an alias to 2D util::array 2020-09-10 18:23:56 +03:00
12b4b44011 Various util::array fixes 2020-09-10 18:23:18 +03:00
6e2277ded3 Change pi constant type to long double 2020-09-10 18:14:52 +03:00
6e42502873 Support explicit padding in mesh vertices 2020-09-10 11:06:10 +03:00
30448d2ec1 Add util::array - an N-dim array with variable bounds 2020-09-10 11:05:19 +03:00
195867ac31 Remove util::multidimensional_array 2020-09-10 11:04:57 +03:00
6499cf8779 Remove obsolete header 2020-09-10 11:04:42 +03:00
bccc5070c2 Fix public compile definitions for sublibs 2020-09-10 11:03:56 +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
22726bc565 Fix spherical camera elevation angle 2020-08-31 10:20:19 +03:00
78fd6db86c Add axes & sphere drawing for gfx::painter 2020-08-31 09:58:59 +03:00
cf6a8e98eb Change spherical camera: now X is right, Y is forward, Z is up 2020-08-31 09:47:30 +03:00
695da47ade Fix scene resize if scene changed when processing events 2020-08-31 09:47:04 +03:00
eb67ee846d Implement simple text rendering in gfx::painter 2020-08-30 21:27:34 +03:00
3136c3b239 Add an istream class that wraps raw data buffer 2020-08-30 21:27:10 +03:00
3d3e6c583b Refactor gfx::painter methods 2020-08-30 21:23:33 +03:00
ac505229ae Use scene for draw & update calls instead of app 2020-08-30 21:22:12 +03:00
3dd8f3db61 Explicitly request 24-bit depth buffer 2020-08-30 21:21:54 +03:00
21b532062b Add app::stop 2020-08-30 21:21:37 +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
44883e0226 Make segment & triangle aliases instead of subclasses 2020-08-30 21:19:16 +03:00
1590ec4ece Move gfx/source/gfx -> gfx/source 2020-08-30 10:32:34 +03:00
dea7cbf32e Move on_quit handler from scene to app 2020-08-30 10:24:22 +03:00
f2bfa3968e Make examples compilation optional 2020-08-30 10:14:51 +03:00
da8d9550a7 Introduce app::scene & support changing scenes 2020-08-30 10:14:35 +03:00
91de56753b Support app constructor arguments in app::main 2020-08-30 09:39:15 +03:00
6ec10e9463 Add a gravity example 2020-08-30 09:08:21 +03:00
08ab8c00a7 Add simple painter helper (wip) 2020-08-30 09:08:12 +03:00
98c3225f86 Add examples folder 2020-08-30 09:06:03 +03:00
19a2055385 Use 4x multisampling by default 2020-08-30 08:52:30 +03:00
de3f9cc8cc Make sure app::on_resize gets called at least once 2020-08-30 08:51:55 +03:00
a6316d27f4 Add app::time 2020-08-30 08:49:29 +03:00
3ab93d21a7 Use ad-hoc pimpl instead of util::pimpl for app 2020-08-30 08:48:57 +03:00
ebe8ecfe55 Add a file with math constants 2020-08-30 08:47:02 +03:00
4d6f5d6f85 Add orthographic & window cameras 2020-08-30 08:46:42 +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
0d4563638b Put build type in quotes to handle empty build type 2020-08-28 11:01:09 +03:00
61ac1a5d78 Fix resource compiler: add resource header to sources 2020-08-28 09:38:41 +03:00
beed7753d6 Add a 9x12 font to gfx 2020-08-28 09:30:04 +03:00
35ea62bb63 Add an embedded resource compiler tool 2020-08-28 09:29:39 +03:00
4964a3992e Remove obsolete explicit libs list 2020-08-28 09:29:12 +03:00
24613010c8 Add logging library 2020-08-27 21:03:24 +03:00