Commit Graph

104 Commits (master)

Author SHA1 Message Date
outfrost 4ff3858fa3 Rename typedefs.h to geometry.h 2020-03-07 15:56:45 +01:00
outfrost 1893fe5b90 Fix includes and build instructions 2020-02-19 20:49:00 +00:00
outfrost f4dbdbda0c Move code into game and engine directories 2020-02-19 19:06:47 +00:00
outfrost 2e1b862ace Remove nonsense pointer comparison 2020-02-18 16:14:29 +00:00
outfrost 82e2f4e1a3 Fix code defects from GCC warnings 2019-12-25 12:21:22 +01:00
outfrost 134fb615ed Refactor handling of subdirectories in Makefile
Objects and prerequisite files are now built in subdirectories of BUILDDIR corresponding to their location in the source tree
2019-11-26 01:36:43 +01:00
outfrost ad9d3a846d Update gitignore 2019-10-11 04:11:30 +02:00
outfrost c88e59f0ba Overhaul Makefile and directory structure
* Move sources into src/
* Create platform-specific build directory
* Clean up Makefile rules and variables
* Prevent make from needlessly generating prerequisites
2019-10-11 04:07:27 +02:00
outfrost d46c2a98a3 Render player character and make the camera follow it 2019-02-14 03:43:07 +01:00
outfrost 131fbda1ea Implement custom Asset3D structure and refactor to use it 2019-02-14 02:59:51 +01:00
outfrost 94437542a8 Move a helper file to docs/ 2019-02-14 00:55:53 +01:00
outfrost 41fa7c1142 Move assets into assets/ directory 2019-02-01 14:53:34 +01:00
outfrost beec252f21 Remove reduntant glutSetWindowTitle() 2019-02-01 03:00:01 +01:00
outfrost 77760cbcbb Flip image Y coordinate to unflip the level Z coordinate 2019-01-31 03:57:37 +01:00
outfrost 5ad3cdb713 Add the concept of a player character and load its 3D model
Also, a bit of code cleanup
2019-01-31 03:57:12 +01:00
outfrost bd84c8f6c7 Change main light to directional 2019-01-30 20:24:13 +01:00
outfrost e27a87b3a6 This is where we start needing a bigger window 2019-01-30 20:24:04 +01:00
outfrost 84da6f6199 Implement building levels from TGA images 2019-01-29 23:01:22 +01:00
outfrost 43f76e74ed Remove old drawing function, cleanup render.h 2019-01-29 21:52:26 +01:00
outfrost bb02af9088 Make textures render nicely 2019-01-29 20:28:29 +01:00
outfrost 2facc73f2c Apply all transforms in 3D assets during import 2019-01-29 20:14:35 +01:00
outfrost 1d8acebee5 Refactor log() to logDebug() to reduce ambiguity
Because GCC thinks I'm trying to calculate a logarithm
2019-01-29 19:56:51 +01:00
outfrost fb66089ab5 Render the level's grid of blocks 2019-01-29 19:53:59 +01:00
outfrost 2e715d0104 Goddamn clipping planes rendering my crap backwards 2019-01-29 19:37:10 +01:00
outfrost 4ec638e84a Choose C99 and make code a bit more standards-compliant 2019-01-29 19:36:34 +01:00
outfrost 229d9c48ab Turn off performance metering for now 2019-01-29 04:31:47 +01:00
outfrost 18c00bd9f4 Rework asset import, add texture import 2019-01-29 04:30:17 +01:00
outfrost d1a121ad8e Improve at-a-glance readability of the AiScene partial hierarchy 2019-01-29 04:23:57 +01:00
outfrost 4c00cd6566 Exclude debugutil from build 2019-01-28 21:03:14 +01:00
outfrost 94a54bd03c Actually, screw strict function prototypes 2019-01-27 01:14:34 +01:00
outfrost 28822c9926 Add a logger!
Variadic functions, smh
2019-01-27 01:09:55 +01:00
outfrost ac5679f040 Reorder, move and rename things
* Reorder header includes alphabetically
* Move initRender() to render.c
* Rename glut_janitor to ui
2019-01-24 03:37:37 +01:00
outfrost 4de1dfafb5 Generate header dependencies automatically 2019-01-24 03:34:51 +01:00
outfrost e3163ca8a3 Add vsync via EXT_swap_control 2019-01-22 22:24:00 +01:00
outfrost 3eea3126a4 Start haing some sort of clue where things are in AiScene 2019-01-16 06:40:05 +01:00
outfrost 8988e8e63c Update Makefile 2019-01-15 14:58:05 +01:00
outfrost ba8e13fea6 Further apply type aliases and cleanup includes 2019-01-15 14:51:59 +01:00
outfrost 5b1f7e35a0 Remove ambiguity in render.* 2019-01-13 20:38:48 +01:00
outfrost c9189c7807 Refactor handling of imported assets a bit 2019-01-13 20:32:25 +01:00
outfrost be9c54a94a Add lighting (1 point light) 2019-01-13 19:30:14 +01:00
outfrost d4bb64d6f9 Add frametime & fps metering
It runs at 2400 fps. My PC might need help later.
2019-01-06 06:25:55 +01:00
outfrost 9a1658e9c7 Refactor code style
(not really naming convention)
2018-11-13 04:12:48 +01:00
outfrost eb7364dca1 Format header includes 2018-11-13 03:04:13 +01:00
outfrost 3efceb3723 Start refactoring naming convention 2018-11-06 14:56:59 +01:00
outfrost 1bbba195f7 Render loaded aiScene primitively 2018-11-05 03:12:32 +01:00
outfrost 479000461e Return aiScene* from import, move prints to debugutil 2018-11-05 03:11:35 +01:00
outfrost 41d4049288 Revamp Makefile 2018-11-05 03:08:41 +01:00
outfrost 626e12e649 Link libassimp and test importing a 3ds file 2018-10-11 02:19:15 +02:00
outfrost 0572a34115 Add and fix header guards 2018-10-11 00:09:45 +02:00
outfrost a759fa23d4 Only render axis indicator on the positive side of that axis 2018-10-10 23:55:49 +02:00