Skip to content

Commit 6341ed1

Browse files
committed
Cosmetics
1 parent c301be4 commit 6341ed1

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

Examples/Hello.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ static const Vertex vertexes[] = {
6161
* @brief
6262
*/
6363
static void drawScene(Scene *scene) {
64+
6465
static float2 angles;
6566
static Uint64 lastTicks;
6667

@@ -86,6 +87,7 @@ static void drawScene(Scene *scene) {
8687
float4x4 modelView = float4x4_rotation(angles.x, float3_new(1.f, 0.f, 0.f));
8788
modelView = float4x4_mul(float4x4_rotation(angles.y, float3_new(0.f, 1.f, 0.f)), modelView);
8889
modelView = float4x4_mul(float4x4_translation(float3_new(0.f, 0.f, -2.5f)), modelView);
90+
8991
const float4x4 projection = float4x4_perspective(45.f, (float) swapchain.size.w / (float) swapchain.size.h, 0.01f, 100.f);
9092
const float4x4 modelViewProjection = float4x4_mul(projection, modelView);
9193

@@ -121,7 +123,7 @@ int main(int argc, char **argv) {
121123

122124
GPU_Assert(SDL_Init(SDL_INIT_VIDEO), "SDL_Init");
123125

124-
SDL_Window *window = SDL_CreateWindow("ObjectivelyGPU Hello", 800, 600, SDL_WINDOW_HIGH_PIXEL_DENSITY);
126+
SDL_Window *window = SDL_CreateWindow("Hello ObjectivelyGPU", 1024, 720, SDL_WINDOW_HIGH_PIXEL_DENSITY);
125127
GPU_Assert(window, "SDL_CreateWindow");
126128

127129
RenderDevice *renderDevice = $(alloc(RenderDevice), initWithWindow, window);

Sources/ObjectivelyGPU/Types.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,7 @@ struct SDL_Size {
6161

6262
/**
6363
* @brief Asserts that @a cond is true, logging the SDL error and exiting on failure.
64-
* @details Unlike assert(3), this macro is never compiled out. Use it to guard
65-
* SDL_gpu operations where failure is unrecoverable (bad device, OOM, wrong
66-
* thread, unsupported format, etc.).
64+
* @details Unlike assert(3), this macro is never compiled out.
6765
*/
6866
#define GPU_Assert(cond, fmt, ...) \
6967
if (!(cond)) { \

0 commit comments

Comments
 (0)