Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Change OpenGL context version to 3.2 for better portability | Tomasz Kramkowski | 2018-07-15 | 1 | -1/+1 |
| | | | | Apparently some version OSX or something doesn't support 3.3. | ||||
* | dorp says this is no longer UB if float (*)[4] is cast to float * | Tomasz Kramkowski | 2018-05-15 | 1 | -3/+3 |
| | | | | The C standard is a strange beast. | ||||
* | faqe.c: main now returns 0 to fix SDL_main on windows | Tomasz Kramkowski | 2018-05-04 | 1 | -0/+2 |
| | | | | | On windows SDL replaces main with SDL_main and uses a WinMain function. SDL_main is not main so it must return something. | ||||
* | Move assets to an assets subdirectory and simplify model loading | Tomasz Kramkowski | 2018-05-04 | 1 | -11/+17 |
| | |||||
* | Animate the light position around the cube | Tomasz Kramkowski | 2018-05-03 | 1 | -1/+8 |
| | |||||
* | Add a simple camera struct and camera controls | Tomasz Kramkowski | 2018-05-03 | 1 | -15/+49 |
| | |||||
* | Cleanup: License headers, spacing, naming | Tomasz Kramkowski | 2018-05-02 | 1 | -1/+1 |
| | | | | | | | Rename vnorm to fnorm (fragment normal). Change shader license headers to C++ style comments. Fix spacing for PI define in faqe.c. Add missing license headers. | ||||
* | Implement diffuse texture loading and basic material support | Tomasz Kramkowski | 2018-05-02 | 1 | -1/+4 |
| | |||||
* | Improve glprog_load to take sentinel terminated lists | Tomasz Kramkowski | 2018-05-02 | 1 | -2/+4 |
| | | | | | | Numerous times a new uniform has been added and the corresponding increment of the nunis parameter was forgotten causing confusion. This should not happen anymore. | ||||
* | Enable SRGB framebuffer and backface culling. | Tomasz Kramkowski | 2018-05-02 | 1 | -0/+2 |
| | |||||
* | Fix model matrix being transposed. | Tomasz Kramkowski | 2018-04-30 | 1 | -1/+1 |
| | |||||
* | Store camera position in a variable for now. | Tomasz Kramkowski | 2018-04-30 | 1 | -1/+2 |
| | |||||
* | Fix proj mat not being set requiring a resize before anything shows | Tomasz Kramkowski | 2018-04-30 | 1 | -0/+1 |
| | | | | | | The projection matrix uniform was being used before the shader program was being used. This caused nothing to get rendered until a window resize. | ||||
* | Implement basic model loading of FMD format. | Tomasz Kramkowski | 2018-04-27 | 1 | -44/+52 |
| | | | | | | | | | | | | The FMD (Faqe Model Data) format is a format designed for faqe. It stores vertex, element and material information and mesh information. This patch provides the basic implementation and use of this format. This patch also implements perspective projection, depth testing and view and model matrices. An example fmd file is provided. | ||||
* | Replace GLFW3 with SDL2 | Tomasz Kramkowski | 2018-04-20 | 1 | -29/+51 |
| | | | | Replace all of GLFW3 with SDL2 for future benefits. | ||||
* | Rename project gltest -> faqe | Tomasz Kramkowski | 2018-03-30 | 1 | -0/+111 |
The project has been renamed to faqe. The logic for this name: quake -> fake quake -> faqe |