Small cleanup/comments.
This commit is contained in:
+11
-1
@@ -1,17 +1,27 @@
|
||||
// -----------------------------------------------------------------------------
|
||||
// Asset Manager
|
||||
//
|
||||
// Responsible for loading, owning, and unloading all game assets.
|
||||
// Assets are loaded once, shared throughout the game, and released on close
|
||||
// -----------------------------------------------------------------------------
|
||||
package game
|
||||
|
||||
import rl "vendor:raylib"
|
||||
// import rl "vendor:raylib"
|
||||
|
||||
Asset_Manager :: struct {
|
||||
// Empty for now.
|
||||
//player: rl.Texture2D,
|
||||
}
|
||||
|
||||
asset_manager_init :: proc() -> Asset_Manager {
|
||||
assets := Asset_Manager{}
|
||||
|
||||
// assets.player = rl.LoadTexture("assets/sprites/player.png")
|
||||
|
||||
return assets
|
||||
}
|
||||
|
||||
asset_manager_destroy :: proc(assets: ^Asset_Manager) {
|
||||
// unload textures here later.
|
||||
//rl.UnloadTexture(assets.player)
|
||||
}
|
||||
Reference in New Issue
Block a user