mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
This commit is contained in:
@@ -25,7 +25,7 @@ const (
|
||||
|
||||
struct App {
|
||||
mut:
|
||||
gg &gg.Context
|
||||
gg &gg.Context = unsafe { nil }
|
||||
pip_3d sgl.Pipeline
|
||||
texture gfx.Image
|
||||
init_flag bool
|
||||
|
||||
@@ -36,7 +36,7 @@ const (
|
||||
|
||||
struct App {
|
||||
mut:
|
||||
gg &gg.Context
|
||||
gg &gg.Context = unsafe { nil }
|
||||
pip_3d sgl.Pipeline
|
||||
texture gfx.Image
|
||||
init_flag bool
|
||||
|
||||
@@ -37,7 +37,7 @@ const (
|
||||
|
||||
struct App {
|
||||
mut:
|
||||
gg &gg.Context
|
||||
gg &gg.Context = unsafe { nil }
|
||||
texture gfx.Image
|
||||
init_flag bool
|
||||
frame_count int
|
||||
|
||||
@@ -37,7 +37,7 @@ const (
|
||||
|
||||
struct App {
|
||||
mut:
|
||||
gg &gg.Context
|
||||
gg &gg.Context = unsafe { nil }
|
||||
texture gfx.Image
|
||||
init_flag bool
|
||||
frame_count int
|
||||
|
||||
@@ -32,7 +32,7 @@ const (
|
||||
|
||||
struct App {
|
||||
mut:
|
||||
gg &gg.Context
|
||||
gg &gg.Context = unsafe { nil }
|
||||
texture gfx.Image
|
||||
init_flag bool
|
||||
frame_count int
|
||||
|
||||
@@ -98,8 +98,8 @@ pub mut:
|
||||
// shader data for the rendering
|
||||
pub struct Shader_data {
|
||||
pub mut:
|
||||
vs_data &Tmp_vs_param
|
||||
vs_data &Tmp_vs_param = unsafe { nil }
|
||||
vs_len int
|
||||
fs_data &Tmp_fs_param
|
||||
fs_data &Tmp_fs_param = unsafe { nil }
|
||||
fs_len int
|
||||
}
|
||||
|
||||
@@ -45,7 +45,7 @@ const (
|
||||
|
||||
struct App {
|
||||
mut:
|
||||
gg &gg.Context
|
||||
gg &gg.Context = unsafe { nil }
|
||||
texture gfx.Image
|
||||
init_flag bool
|
||||
frame_count int
|
||||
|
||||
@@ -56,7 +56,7 @@ Let my heart be still a moment and this mystery explore;—
|
||||
struct AppState {
|
||||
mut:
|
||||
pass_action gfx.PassAction
|
||||
fons &fontstash.Context
|
||||
fons &fontstash.Context = unsafe { nil }
|
||||
font_normal int
|
||||
inited bool
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ mut:
|
||||
gframe int // the current graphical frame
|
||||
frame_0 int // offset of the current audio frames, relative to the start of the music
|
||||
frames [2048]f32 // a copy of the last rendered audio frames
|
||||
gg &gg.Context // used for drawing
|
||||
gg &gg.Context = unsafe { nil } // used for drawing
|
||||
}
|
||||
|
||||
fn my_audio_stream_callback(buffer &f32, num_frames int, num_channels int, mut acontext AppState) {
|
||||
|
||||
Reference in New Issue
Block a user