Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

main.c: fix spelling errors #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ static void tdraw(const int yres, uint32_t* const pixel, float* const zbuff, con
const Vertex bc = tbarycenter(t.vew, x, y);
if(bc.x >= 0.0f && bc.y >= 0.0f && bc.z >= 0.0f)
{
// Barycenter above is upwards. Everything below rotated 90 degrees to accomodate sideways renderer.
// Barycenter above is upwards. Everything below rotated 90 degrees to accommodate sideways renderer.
const float z = bc.x * t.vew.b.z + bc.y * t.vew.c.z + bc.z * t.vew.a.z;
if(z > zbuff[y + x * yres])
{
Expand Down Expand Up @@ -437,7 +437,7 @@ static Sdl ssetup(const int xres, const int yres)
SDL_Init(SDL_INIT_VIDEO);
SDL_CreateWindowAndRenderer(xres, yres, 0, &sdl.window, &sdl.renderer);
SDL_SetWindowTitle(sdl.window, "Gel-1.2");
// Notice the flip between xres and yres - the renderer is on its side to maximize cache effeciency.
// Notice the flip between xres and yres - the renderer is on its side to maximize cache efficiency.
sdl.canvas = SDL_CreateTexture(sdl.renderer, SDL_PIXELFORMAT_ARGB8888, SDL_TEXTUREACCESS_STREAMING, yres, xres);
sdl.xres = xres;
sdl.yres = yres;
Expand Down