![background image](http://html.mh-extra.com/html/texas-instruments/tvp4020-permedia-2/tvp4020-permedia-2_reference-manual_1097169167.webp)
Delta Programming Examples
TVP4020
Programmers Reference Manual
158
for (i = 0; i < 12; i++)
{
v = lineOrder[i];
vertexStore = __Delta_V0Fl 16 * (i % 2);
LD_PARAM((verte paramR), mesh[v].r);
LD_PARAM((verte paramG), mesh[v].g);
LD_PARAM((verte paramB), mesh[v].b);
LD_PARAM((verte paramA), mesh[v].a);
LD_PARAM((verte paramX), mesh[v].x);
LD_PARAM((verte paramY), mesh[v].y);
LD_PARAM((verte paramZ), mesh[v].z);
if (i >= 1)
{
// We now have enough vertices to draw a line.
for (rect = 0; rect < numberClipRectangles; rect++)
{
// Load in the scissor rectangle.
LD_REG(ScissorMinXYTag,
(clipRectangles[rect].scissorMin.y << 16 |
clipRectangles[rect].scissorMin.x));
LD_REG(ScissorMaxXYTag,
(clipRectangles[rect].scissorMax.y << 16 |
clipRectangles[rect].scissorMax.x));
if (rect == 0)
{
if (i & 1)
{
LD_REG(DrawLine01Tag, *((long *) &drawCmd));
}
else
{
LD_REG(DrawLine10Tag, *((long *) &drawCmd));
}
}
else
{
LD_REG(RepeatLineTag, 0);
// data field unused
}
}
}
}
}
Summary of Contents for TVP4020 PERMEDIA 2
Page 1: ...Texas Instruments TVP4020 PERMEDIA 2 Programmer s Reference Manual Issue 4 ...
Page 284: ...TVP4020 Programmers Reference Manual A Gouraud Shaded Triangle 275 ...
Page 292: ...TVP4020 Programmers Reference Manual Register Tables 283 ...
Page 314: ...TVP4020 Programmers Reference Manual Index 305 ...
Page 315: ...Index TVP4020 Programmers Reference Manual 306 Index ...
Page 323: ...Index TVP4020 Programmers Reference Manual 314 ...