List of commits:
Subject Hash Author Date (UTC)
fgcDrawFramebuffer needs index, not bool d076dc141feb0be619b8c09efa04142ff4757ad6 fluffrabbit 2024-09-27 17:57:31
Fix fgcLoadOBJ and update pagoda demo e77a6c778f218f906b73825aaa7d5924b0c4cd0f fluffrabbit 2024-09-18 02:06:07
Work on fgcLoadOBJ some more 3429e9a2b8fef4700ea61eede2974c532b6b4a5d fluffrabbit 2024-09-17 06:56:23
Work on fgcLoadOBJ e1d3eb6f3b0d009a30d1f2931f9d548cc8d14967 fluffrabbit 2024-09-14 06:37:16
Add fgcNormalizeVertices 7d7dfbf70275dc5cd3529e3755a2301ba06cb6fe fluffrabbit 2024-09-10 01:44:33
Draw scene color 12354112add161591f2801600ffc592faddef502 fluffrabbit 2024-07-11 22:18:26
Put framebuffer textures in an array ad44ec442db02cbb194559948d7183580b488cec fluffrabbit 2024-07-11 19:33:58
Initial commit cd1f3278f6f9a79255ba17b3b9eb0c224c8fd091 fluffrabbit 2024-07-10 17:32:30
Commit d076dc141feb0be619b8c09efa04142ff4757ad6 - fgcDrawFramebuffer needs index, not bool
Author: fluffrabbit
Author date (UTC): 2024-09-27 17:57
Committer name: fluffrabbit
Committer date (UTC): 2024-09-27 17:57
Parent(s): e77a6c778f218f906b73825aaa7d5924b0c4cd0f
Signer:
Signing key:
Signing status: N
Tree: 3e66948f56795ed00457b44aa9208aacbdb8373f
File Lines added Lines deleted
include/fgc_font.h 24 0
include/stb_truetype.h 5079 0
src/cfps.c 2 1
File include/fgc_font.h added (mode: 100644) (index 0000000..1676d19)
1 #ifndef FGC_FONT_H
2 #define FGC_FONT_H
3
4 #include "fgc.h"
5 #include "stb_truetype.h"
6
7 struct FGCFont {
8 FGCTexture texture;
9 FGCMesh textMesh;
10 float size;
11 float height;
12 std::vector<int> charStarts;
13 std::vector<int> charEnds;
14 std::vector<unsigned char> buffer;
15 std::vector<unsigned char> atlas;
16 bool needSync;
17 stbtt_pack_context pc;
18 stbtt_fontinfo info;
19 std::vector<stbtt_packedchar> packedChars;
20 };
21
22 // TODO.
23
24 #endif // FGC_FONT_H
The diff for file include/stb_truetype.h is too big (5079 changes) and cannot be shown.
File src/cfps.c changed (mode: 100644) (index 18516b0..4f2a5a2)
2 2 #include <stb_image.h> #include <stb_image.h>
3 3
4 4 #include <fgc.h> #include <fgc.h>
5 #include <fgc_font.h>
5 6
6 7 #define ZONE_DATA FGCColor backFog, backSky, foreFog, foreSky; #define ZONE_DATA FGCColor backFog, backSky, foreFog, foreSky;
7 8 #include <zone.h> #include <zone.h>
 
... ... void Render(double d){
322 323
323 324 // Draw the gbuffer to the screen. // Draw the gbuffer to the screen.
324 325 fgcSetFramebuffer(NULL, 1.0f); fgcSetFramebuffer(NULL, 1.0f);
325 fgcDrawFramebuffer(&gbuffer, false, 1.0f);
326 fgcDrawFramebuffer(&gbuffer, 0, 1.0f);
326 327
327 328 // Draw transparent. // Draw transparent.
328 329 glEnable(GL_BLEND); glEnable(GL_BLEND);
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/fluffrabbit/cfps

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/fluffrabbit/cfps

Clone this repository using git:
git clone git://git.rocketgit.com/user/fluffrabbit/cfps

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main