shithub: tinygl

Download patch

ref: 72a4c032d27f54b4133a525369273d9d20d0ca5c
parent: d4c74eb18f7aea4190b74b49a3c548d4fb01c7e0
author: David <gek@katherine>
date: Wed Mar 3 09:12:02 EST 2021

B

--- a/README.md
+++ b/README.md
@@ -164,8 +164,19 @@
 
 ### HOW DO I USE THIS LIBRARY???
 
+TinyGL is not header only, it is a combination of C files, internal headers, and external headers.
+
+The internal headers are only used while compiling the library,
+
+the external headers (gl.h, zfeatures.h, zbuffer.h) are requires to use the library.
+
+You CAN compile the library along with your final program into a single compilation unit without separating out the library.
+
+Doing so is the most likely compiling method for embedded platforms and how I got TinyGL running on the 3DS.
+
 ```c
 //First you have to include
+//(Note that you must either link against libTinyGL.a or compile it in the same compilation unit as your program)
 #include "../include/GL/gl.h"
 #include "../include/zbuffer.h"
 
@@ -181,6 +192,14 @@
 glInit(frameBuffer);
 
 //Begin making TinyGL calls!
+
+//When you want to copy to your target screen
+//Pitch is the width of the target in bytes, or bytes per pixel times width;
+ZB_copyFrameBuffer(frameBuffer, screen->pixels, screen->pitch);
+
+
+
+
 //At the end of your application, when you want to clean up.
 ZB_close(frameBuffer);
 glClose();