RenderPoly.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /* Copyright (c) 2002-2012 Croteam Ltd.
  2. This program is free software; you can redistribute it and/or modify
  3. it under the terms of version 2 of the GNU General Public License as published by
  4. the Free Software Foundation
  5. This program is distributed in the hope that it will be useful,
  6. but WITHOUT ANY WARRANTY; without even the implied warranty of
  7. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  8. GNU General Public License for more details.
  9. You should have received a copy of the GNU General Public License along
  10. with this program; if not, write to the Free Software Foundation, Inc.,
  11. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */
  12. #ifndef SE_INCL_RENDERPOLY_H
  13. #define SE_INCL_RENDERPOLY_H
  14. #ifdef PRAGMA_ONCE
  15. #pragma once
  16. #endif
  17. // general structure
  18. struct PolyVertex2D
  19. {
  20. FLOAT pv2_fI, pv2_fJ; // DrawPort 2D coords
  21. FLOAT pv2_f1oK; // Viewpoint (camera) distance (z-buffer value)
  22. FLOAT pv2_fUoK, pv2_fVoK; // texture coordinates (for perspective mapping)
  23. };
  24. // functions for rendering triangles
  25. extern void SetTriangleTexture( ULONG *pulCurrentMipmap, PIX pixMipWidth, PIX pixMipHeight);
  26. extern void DrawTriangle_Mask( UBYTE *pubMaskPlane, SLONG slMaskWidth, SLONG slMaskHeight,
  27. struct PolyVertex2D *ppv2Vtx1, struct PolyVertex2D *ppv2Vtx2,
  28. struct PolyVertex2D *ppv2Vtx3, BOOL bTransparency);
  29. // has model cast some cluster shadow (shadow renderer needs this)
  30. extern BOOL _bSomeDarkExists;
  31. #endif /* include-once check. */