Refactoring some of the poker game logic again.
This commit is contained in:
30
temp/render/world.c
Normal file
30
temp/render/world.c
Normal file
@ -0,0 +1,30 @@
|
||||
/**
|
||||
* Copyright (c) 2021 Dominic Masters
|
||||
*
|
||||
* This software is released under the MIT License.
|
||||
* https://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
#include "world.h"
|
||||
|
||||
void pokerWorldInit(poker_t *poker) {
|
||||
// Poker Table
|
||||
pokerTableInit(&poker->tablePrimitive);
|
||||
assetTextureLoad(&poker->tableTexture, "pokertable.png");
|
||||
}
|
||||
|
||||
void pokerWorldRender(poker_t *poker) {
|
||||
// Poker Table
|
||||
shaderUsePositionAndScale(&poker->shader,
|
||||
0, -0.01, 0,
|
||||
0, 0, 0,
|
||||
3.4, 3.4, 3.4
|
||||
);
|
||||
shaderUseTexture(&poker->shader, &poker->tableTexture);
|
||||
primitiveDraw(&poker->tablePrimitive, 0, -1);
|
||||
}
|
||||
|
||||
void pokerWorldDispose(poker_t *poker) {
|
||||
textureDispose(&poker->tableTexture);
|
||||
primitiveDispose(&poker->tablePrimitive);
|
||||
}
|
Reference in New Issue
Block a user