MCPcopy Create free account
hub / github.com/VirtualGL/virtualgl / initBuf

Function initBuf

util/fbxtest.cpp:69–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67
68
69void initBuf(int x, int y, int width, int pitch, int height, PF *pf,
70 unsigned char *buf, int offset)
71{
72 int i, j;
73
74 for(j = 0; j < height; j++)
75 {
76 for(i = 0; i < width; i++)
77 pf->setRGB(&buf[j * pitch + i * pf->size], (i + x + offset) % MAXRGB,
78 (j + y + offset) % MAXRGB, (j + y + i + x + offset) % MAXRGB);
79 }
80}
81
82
83int cmpBuf(int x, int y, int width, int pitch, int height, PF *pf,

Callers 2

nativeWriteFunction · 0.70
runMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected