I have been trying to test out raylib and I am trying to render rectangles at an angle, but I am unsure as to why they will not render. The method DrawRectangle() does work, despite DrawRectanglePro() not working.
#include <iostream>
#include "raylib.h"
int main() {
InitWindow(800, 800, "More Raylib Practice");
SetWindowState(FLAG_VSYNC_HINT);
while (!WindowShouldClose()) {
BeginDrawing();
ClearBackground(BLACK);
DrawRectangle(10, 10, 10, 10, RED); //normal rectangle DOES render
Rectangle rec = { 10, 10, 10, 10 };
DrawRectanglePro(rec, { 400, 400 }, (float)45, WHITE); //angled rectangle doesn't?
EndDrawing();
}
CloseWindow();
return 0;
}