erich666 / GraphicsGems

Code for the "Graphics Gems" book series

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

name mismatch

maddin200 opened this issue · comments

gems\AAPolyScan.c line 64
Declaration:
void renderScanline(Vertex* left, Vertex* right, int y, Surface* object);

Definition:
void renderScanline(Vl, Vr, y, object)
Vertex *Vl, Vr; / polygon vertices interpolated /
/
at scanline /
int y; /
scanline coordinate */
Surface object; / shading parms for this object */

Fixed. Out of interest, @maddin200, does this actually matter to any compiler (i.e., the code won't compile), or is this just a warning?

The issue is only of style type. Only in cases like:
int myfunc(int a, int b); // interface

int myfunc(int b, int a)
{
....

it is more serious (will also compile)