Adding raylib debug build
This commit is contained in:
parent
e6bb0cb1f7
commit
7e3ca0c95a
7 changed files with 20 additions and 16 deletions
|
|
@ -37,8 +37,6 @@ project_write :: proc(project: ^ProjectData, path: string) -> ProjectWriteError
|
|||
io.write_ptr(w, &version, size_of(version)) or_return
|
||||
io.write_ptr(w, &project.matrix_count, size_of(project.matrix_count)) or_return
|
||||
n := io.write_ptr(w, raw_data(project.matrices), int(project.matrix_count) * 9 * size_of(f32)) or_return
|
||||
fmt.println(n)
|
||||
// io.write_ptr(w, &project.grid, size_of(Grid))
|
||||
os.close(f)
|
||||
return nil
|
||||
}
|
||||
|
|
@ -55,8 +53,6 @@ ProjectReadErrorType :: enum {
|
|||
VersionNeedsUpgrade,
|
||||
}
|
||||
|
||||
import "core:fmt"
|
||||
|
||||
project_read :: proc(project: ^ProjectData, path: string) -> ProjectReadError {
|
||||
f := os.open(path, {.Read}) or_return
|
||||
defer os.close(f)
|
||||
|
|
@ -75,8 +71,5 @@ project_read :: proc(project: ^ProjectData, path: string) -> ProjectReadError {
|
|||
}
|
||||
_ = io.read_ptr(r, &project.matrix_count, size_of(project.matrix_count)) or_return
|
||||
n := io.read_ptr(r, raw_data(project.matrices), size_of(f32) * len(project.matrices)) or_return
|
||||
fmt.println(n)
|
||||
// _ = io.read_ptr(r, &project.grid, size_of(Grid)) or_return
|
||||
// _ = io.read_ptr(r, &project.animation, size_of(Animation)) or_return
|
||||
return nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue