Skip to content

Commit

Permalink
Opaque structs are just type definitions again.
Browse files Browse the repository at this point in the history
  • Loading branch information
smack0007 committed Sep 23, 2024
1 parent e71d89c commit 98df9f6
Show file tree
Hide file tree
Showing 13 changed files with 194 additions and 328 deletions.
2 changes: 1 addition & 1 deletion examples/same-game/fonts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ type GlyphData = {
};

export type FontAtlas = {
texture: SDL.Texture;
texture: Pointer<SDL.Texture>;
glyphs: Record<string, SDL.Rect>;
};

Expand Down
2 changes: 1 addition & 1 deletion examples/same-game/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function update(elapsed: bigint, board: Board): void {
function draw(
renderer: Pointer<SDL.Renderer>,
board: Board,
blockTexture: SDL.Texture,
blockTexture: Pointer<SDL.Texture>,
font: FontAtlas
): void {
SDL.SetRenderDrawColor(renderer, 0, 0, 0, 255);
Expand Down
2 changes: 1 addition & 1 deletion examples/same-game/rendering/board.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { BlockColors } from "../logic/blockColors.ts";
export function drawBoard(
renderer: Pointer<SDL.Renderer>,
board: Board,
blockTexture: SDL.Texture,
blockTexture: Pointer<SDL.Texture>,
): void {
SDL.SetTextureBlendMode(blockTexture, SDL.BlendMode.BLEND);

Expand Down
Loading

0 comments on commit 98df9f6

Please sign in to comment.