Update
- Added DestroyTex to 3ds backend - Added Size() -> ivec2 to PD::Image - Added CmdPool Copy as well as DrawList Copy (Static rendering) - Added == ooperator for Rect - Added UI7 Frame Rounding - Fix UI7 Image usage withour size or uv - Added New way to use BeginMenu
This commit is contained in:
@@ -48,6 +48,7 @@ class GfxC3D : public GfxDriver {
|
||||
PD::Li::Texture::Type type = PD::Li::Texture::Type::RGBA32,
|
||||
PD::Li::Texture::Filter filter =
|
||||
PD::Li::Texture::Filter::LINEAR) override;
|
||||
void DestroyTex(PD::Li::Texture::Ref tex) override;
|
||||
|
||||
std::vector<Li::Vertex, LinearAllocator<Li::Vertex>> VertexBuffer;
|
||||
std::vector<u16, LinearAllocator<u16>> IndexBuffer;
|
||||
|
||||
@@ -260,4 +260,11 @@ PD::Li::Texture::Ref GfxC3D::LoadTex(const std::vector<PD::u8>& pixels, int w,
|
||||
<< std::endl;
|
||||
return res;
|
||||
}
|
||||
|
||||
void GfxC3D::DestroyTex(PD::Li::Texture::Ref tex) {
|
||||
C3D_Tex* t = reinterpret_cast<C3D_Tex*>(tex->Address);
|
||||
C3D_TexDelete(t);
|
||||
delete t;
|
||||
tex->Address = 0;
|
||||
}
|
||||
} // namespace PD
|
||||
Reference in New Issue
Block a user