vlib: make more structs, consts, & enums public

pull/2532/head
joe-conigliaro 2019-10-24 22:35:11 +11:00 committed by GitHub
parent 75a6c759c7
commit fe17dd9a7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 10 additions and 10 deletions

View File

@ -52,7 +52,7 @@ struct C.FT_Library {
_z int _z int
} }
struct Context { pub struct Context {
shader gl.Shader shader gl.Shader
// use_ortho bool // use_ortho bool
width int width int

View File

@ -11,7 +11,7 @@ import gx
import os import os
import glfw import glfw
struct Vec2 { pub struct Vec2 {
pub: pub:
x int x int
y int y int
@ -32,7 +32,7 @@ pub fn init_gg() {
} }
struct Cfg { pub struct Cfg {
pub: pub:
width int width int
height int height int
@ -49,7 +49,7 @@ pub:
scale int scale int
} }
struct GG { pub struct GG {
shader gl.Shader shader gl.Shader
// use_ortho bool // use_ortho bool
width int width int

View File

@ -14,7 +14,7 @@ pub struct Shader {
program_id int program_id int
} }
const ( pub const (
TEXT_VERT = '#version 330 core TEXT_VERT = '#version 330 core
layout (location = 0) in vec4 vertex; // <vec2 pos, vec2 tex> layout (location = 0) in vec4 vertex; // <vec2 pos, vec2 tex>
out vec2 TexCoords; out vec2 TexCoords;

View File

@ -50,7 +50,7 @@ struct TmpGlImportHack {
hack gl.TmpGlImportHack hack gl.TmpGlImportHack
} }
struct WinCfg { pub struct WinCfg {
width int width int
height int height int
title string title string
@ -64,7 +64,7 @@ struct WinCfg {
// data *C.GLFWwindow // data *C.GLFWwindow
// TODO change data to cobj // TODO change data to cobj
struct Window { pub struct Window {
data voidptr data voidptr
title string title string
mx int mx int

View File

@ -17,7 +17,7 @@ import math
// # glm__Vec3 myglm_mult(glm__Vec3, glm__Vec3); // # glm__Vec3 myglm_mult(glm__Vec3, glm__Vec3);
// # glm__Vec3 myglm_cross(glm__Vec3, glm__Vec3); // # glm__Vec3 myglm_cross(glm__Vec3, glm__Vec3);
// # glm__Vec3 myglm_normalize(glm__Vec3); // # glm__Vec3 myglm_normalize(glm__Vec3);
struct Mat4 { pub struct Mat4 {
pub: pub:
data &f32 data &f32
} }

View File

@ -41,12 +41,12 @@ pub const (
LightRed = Color { r: 255, g: 204, b: 203 } LightRed = Color { r: 255, g: 204, b: 203 }
) )
const ( pub const (
ALIGN_LEFT = 1 ALIGN_LEFT = 1
ALIGN_RIGHT = 4 ALIGN_RIGHT = 4
) )
struct TextCfg { pub struct TextCfg {
pub: pub:
color Color color Color
size int size int