diff --git a/vlib/freetype/freetype.v b/vlib/freetype/freetype.v index 3399555e8d..5f87321935 100644 --- a/vlib/freetype/freetype.v +++ b/vlib/freetype/freetype.v @@ -52,7 +52,7 @@ struct C.FT_Library { _z int } -struct Context { +pub struct Context { shader gl.Shader // use_ortho bool width int diff --git a/vlib/gg/gg.v b/vlib/gg/gg.v index 09668777b8..83b5ee563d 100644 --- a/vlib/gg/gg.v +++ b/vlib/gg/gg.v @@ -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 diff --git a/vlib/gl/1shader.v b/vlib/gl/1shader.v index eaec134394..8cfc0edec0 100644 --- a/vlib/gl/1shader.v +++ b/vlib/gl/1shader.v @@ -14,7 +14,7 @@ pub struct Shader { program_id int } -const ( +pub const ( TEXT_VERT = '#version 330 core layout (location = 0) in vec4 vertex; // out vec2 TexCoords; diff --git a/vlib/glfw/glfw.v b/vlib/glfw/glfw.v index 3e104dd3aa..4d7ca7f388 100644 --- a/vlib/glfw/glfw.v +++ b/vlib/glfw/glfw.v @@ -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 diff --git a/vlib/glm/glm.v b/vlib/glm/glm.v index d2a7685fd0..1207a72fa3 100644 --- a/vlib/glm/glm.v +++ b/vlib/glm/glm.v @@ -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 } diff --git a/vlib/gx/gx.v b/vlib/gx/gx.v index c97a7b3fed..7b1270fa89 100644 --- a/vlib/gx/gx.v +++ b/vlib/gx/gx.v @@ -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