Fixes
This commit is contained in:
@ -141,7 +141,7 @@ namespace ia::iae
|
||||
{
|
||||
STATIC SDL_GPURenderPass *ActiveRenderPass{};
|
||||
STATIC SDL_GPUCommandBuffer *ActiveCommandBuffer{};
|
||||
STATIC SDL_GPUColorTargetInfo ActiveColorTargetInfo{.clear_color = SDL_FColor{0.0f, 0.0f, 0.0f, 1.0f},
|
||||
STATIC SDL_GPUColorTargetInfo ActiveColorTargetInfo{.clear_color = SDL_FColor{0.39f, 0.58f, 0.92f, 1.0f},
|
||||
.load_op = SDL_GPU_LOADOP_CLEAR,
|
||||
.store_op = SDL_GPU_STOREOP_STORE};
|
||||
|
||||
@ -170,7 +170,7 @@ namespace ia::iae
|
||||
{
|
||||
STATIC SDL_GPURenderPass *ActiveRenderPass{};
|
||||
STATIC SDL_GPUCommandBuffer *ActiveCommandBuffer{};
|
||||
STATIC SDL_GPUColorTargetInfo ActiveColorTargetInfo{.clear_color = SDL_FColor{0.0f, 0.0f, 0.0f, 1.0f},
|
||||
STATIC SDL_GPUColorTargetInfo ActiveColorTargetInfo{.clear_color = SDL_FColor{0.39f, 0.58f, 0.92f, 1.0f},
|
||||
.load_op = SDL_GPU_LOADOP_CLEAR,
|
||||
.store_op = SDL_GPU_STOREOP_STORE};
|
||||
|
||||
@ -226,7 +226,7 @@ namespace ia::iae
|
||||
VOID RDC::DrawLine(IN Vec2 start, IN Vec2 end, IN Vec4 color)
|
||||
{
|
||||
s_primitiveInstances[s_primitiveInstanceCount++] = {start, color};
|
||||
s_primitiveInstances[s_primitiveInstanceCount++] = { end, color };
|
||||
s_primitiveInstances[s_primitiveInstanceCount++] = {end, color};
|
||||
}
|
||||
|
||||
VOID RDC::DrawRect(IN Vec2 start, IN Vec2 end, IN Vec4 color)
|
||||
@ -236,7 +236,7 @@ namespace ia::iae
|
||||
|
||||
s_primitiveInstances[s_primitiveInstanceCount++] = {Vec2{end.x, start.y}, color};
|
||||
s_primitiveInstances[s_primitiveInstanceCount++] = {end, color};
|
||||
|
||||
|
||||
s_primitiveInstances[s_primitiveInstanceCount++] = {end, color};
|
||||
s_primitiveInstances[s_primitiveInstanceCount++] = {Vec2{start.x, end.y}, color};
|
||||
|
||||
@ -289,6 +289,8 @@ namespace ia::iae
|
||||
|
||||
VOID RDC::CompileTextures(IN CONST Vector<Handle> &images)
|
||||
{
|
||||
if (!images.size())
|
||||
return;
|
||||
delete s_dynamicSpriteAtlas;
|
||||
s_dynamicSpriteAtlas = new RDC_TextureAtlas(images);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user