chore: translated more C stuff to C++ in main.cpp
This commit is contained in:
parent
98e4932a43
commit
7c580462b3
|
|
@ -93,7 +93,7 @@ void InitClay() {
|
|||
Clay_Initialize(clayPrimaryArena, { (float)screenWidth, (float)screenHeight }, { HandleClayErrors });
|
||||
Clay_SetMeasureTextFunction(MeasureText, resources::fonts);
|
||||
Clay_SetLayoutDimensions({ (float)screenWidth, (float)screenHeight });
|
||||
float x, y;
|
||||
float x{ 0 }, y{ 0 };
|
||||
SDL_GetMouseState(&x, &y);
|
||||
Clay_SetPointerState((Clay_Vector2) { x, y }, false);
|
||||
}
|
||||
|
|
@ -103,7 +103,7 @@ int main(int argc, char *argv[]) {
|
|||
resources::LoadResources();
|
||||
LogOutputResolution();
|
||||
InitClay();
|
||||
backendData = (Clay_SDL3RendererData) { renderer, resources::textEngine, resources::fonts };
|
||||
backendData = { renderer, resources::textEngine, resources::fonts };
|
||||
SDL_Event event;
|
||||
uint64_t startFrameTime = SDL_GetTicksNS();
|
||||
double deltaTime = 0.0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue