summaryrefslogtreecommitdiff
path: root/include/qntan/Qntan.h
diff options
context:
space:
mode:
authorAndreas Fankhauser hiddenalpha.ch2026-05-20 22:03:13 +0200
committerAndreas Fankhauser hiddenalpha.ch2026-05-20 22:03:13 +0200
commit0fcb5d81ee0cba4b3dd509f7a013d6b34e0f2bae (patch)
tree4b1f55eba84bd31f9eb6d1f99f7b65d04b2fd5b6 /include/qntan/Qntan.h
parentb71994725ceb3c347c1f89264a919fc742da4bfa (diff)
downloadQntan-0fcb5d81ee0cba4b3dd509f7a013d6b34e0f2bae.tar.gz
Qntan-0fcb5d81ee0cba4b3dd509f7a013d6b34e0f2bae.zip
Add
Diffstat (limited to 'include/qntan/Qntan.h')
-rw-r--r--include/qntan/Qntan.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/qntan/Qntan.h b/include/qntan/Qntan.h
index cf66db3..77db54c 100644
--- a/include/qntan/Qntan.h
+++ b/include/qntan/Qntan.h
@@ -1530,6 +1530,9 @@ struct Qntan_HttpClient {
+#ifndef Qntan_GfxRenderer_getInfo
+# define Qntan_GfxRenderer_getInfo(A, B) (*A)->getInfo(A, B)
+#endif
#ifndef Qntan_GfxRenderer_setScissor
# define Qntan_GfxRenderer_setScissor(A, B, C, D, E) (*A)->setScissor(A, B, C, D, E)
#endif
@@ -1566,10 +1569,19 @@ struct Qntan_GfxMtx4d {
float m30, m31, m32, m33;
};
+struct Qntan_GfxRenderer_Info {
+ int w, h;
+ /* Canvas size.
+ */
+};
+
struct Qntan_GfxRenderer {
/* WARN: All around graphics rendering is heavily experimental! Make
* sure you're ready to handle all kind of changes here.
*/
+ void (*getInfo)( struct Qntan_GfxRenderer**, struct Qntan_GfxRenderer_Info*dst );
+ /* Contextual info gets stored into `dst`.
+ */
void (*setScissor)( struct Qntan_GfxRenderer**, int x, int y, int w, int h );
/**/
void (*triangleStrip2d)( struct Qntan_GfxRenderer**,