![Texas Instruments TVP4020 PERMEDIA 2 Скачать руководство пользователя страница 164](http://html.mh-extra.com/html/texas-instruments/tvp4020-permedia-2/tvp4020-permedia-2_reference-manual_1097169164.webp)
TVP4020
Programmers Reference Manual
Delta Programming Examples
155
// We need to ensure that the end vertex of the line (in V1)
// can never be the same as the point vertices. Any X (or Y)
// coordinate which is out of the normal range (0.0 to screen
// width) will do so in this case an X of -1.0 has been used.
float tempEndCoord = -1.0;
LD_PARAM ((__Delta_V1Fl paramX), tempEndCoord);
for (v = 0; v < verticesInMesh; v++)
{
LD_PARAM((__Delta_V0Fl paramR), mesh[v].r);
LD_PARAM((__Delta_V0Fl paramG), mesh[v].g);
LD_PARAM((__Delta_V0Fl paramB), mesh[v].b);
LD_PARAM((__Delta_V0Fl paramA), mesh[v].a);
LD_PARAM((__Delta_V0Fl paramX), mesh[v].x);
LD_PARAM((__Delta_V0Fl paramY), mesh[v].y);
LD_PARAM((__Delta_V0Fl paramZ), mesh[v].z);
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)
{
LD_REG(DrawLine01Tag, *((long *) &drawCmd));
}
else
{
LD_REG(RepeatLineTag, 0);
// data field not used.
}
}
}
}
// This array holds the order we are going to visit the
// vertices in to draw each line segment.
Lint lineOrder[12] = {1, 0, 2, 4, 6, 5, 4, 3, 2, 1, 3, 5};
Содержание TVP4020 PERMEDIA 2
Страница 1: ...Texas Instruments TVP4020 PERMEDIA 2 Programmer s Reference Manual Issue 4 ...
Страница 47: ...Memory I O and Organization TVP4020 Programmers Reference Manual 38 Texture address TextureBaseAddress T W S ...
Страница 284: ...TVP4020 Programmers Reference Manual A Gouraud Shaded Triangle 275 ...
Страница 292: ...TVP4020 Programmers Reference Manual Register Tables 283 ...
Страница 314: ...TVP4020 Programmers Reference Manual Index 305 ...
Страница 315: ...Index TVP4020 Programmers Reference Manual 306 Index ...
Страница 323: ...Index TVP4020 Programmers Reference Manual 314 ...