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
}
struct Context {
pub struct Context {
shader gl.Shader
// use_ortho bool
width int

View File

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

View File

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

View File

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

View File

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

View File

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