-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Working on textures, added asset registry
- Loading branch information
nchalkley2
committed
Aug 25, 2024
1 parent
e26d9ad
commit a3a160d
Showing
17 changed files
with
323 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
dependencies/egg-ps2-graphics-lib/include/egg-ps2-graphics-lib/draw.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
#pragma once | ||
|
||
#include "tamtypes.h" | ||
#include "draw_primitives.h" | ||
|
||
namespace egg::ps2::graphics | ||
{ | ||
prim_t& get_empty_prim(); | ||
void set_fog_color(u8 r, u8 g, u8 b); | ||
} | ||
} // namespace egg::ps2::graphics |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
dependencies/egg-ps2-graphics-lib/include/egg-ps2-graphics-lib/texture.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#pragma once | ||
|
||
#include "tamtypes.h" | ||
#include "packet2_utils.h" | ||
|
||
namespace egg::ps2::graphics | ||
{ | ||
|
||
struct texture_descriptor | ||
{ | ||
texture_descriptor(); | ||
|
||
lod_t lod; | ||
clutbuffer_t clut; | ||
texbuffer_t t_texbuff; | ||
|
||
bool is_uploaded; | ||
|
||
void set_width_height(u32 width, u32 height); | ||
}; | ||
|
||
// Uploads the texture to vram | ||
void upload_texture(texture_descriptor& texture, void* texture_data); | ||
|
||
// Sets the texture currently being drawn | ||
void set_texture(texture_descriptor& texture); | ||
} // namespace egg::ps2::graphics |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.