mirror of
https://github.com/tribes2/engine.git
synced 2026-03-27 16:19:19 +00:00
t2 engine svn checkout
This commit is contained in:
commit
ff569bd2ae
988 changed files with 394180 additions and 0 deletions
29
core/bitRender.h
Normal file
29
core/bitRender.h
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
//-----------------------------------------------------------------------------
|
||||
// V12 Engine
|
||||
//
|
||||
// Copyright (c) 2001 GarageGames.Com
|
||||
// Portions Copyright (c) 2001 by Sierra Online, Inc.
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
#ifndef _BITRENDER_H_
|
||||
#define _BITRENDER_H_
|
||||
|
||||
#ifndef _MMATH_H_
|
||||
#include "Math/mMath.h"
|
||||
#endif
|
||||
|
||||
struct BitRender
|
||||
{
|
||||
// render a triangle to a bitmap of 1-bit per pixel and size dim X dim
|
||||
static void render(const Point2I *, const Point2I *, const Point2I *, S32 dim, U32 * bits);
|
||||
// render a number of triangle strips to 1-bit per pixel bmp of size dim by dim
|
||||
static void render_strips(const U8 * draw, S32 numDraw, S32 szDraw, const U16 * indices, const Point2I * points, S32 dim, U32 * bits);
|
||||
// render a number of triangles to 1-bit per pixel bmp of size dim by dim
|
||||
static void render_tris(const U8 * draw, S32 numDraw, S32 szDraw, const U16 * indices, const Point2I * points, S32 dim, U32 * bits);
|
||||
|
||||
static void bitTo8Bit(U32 * bits, U32 * eightBits, S32 dim);
|
||||
static void bitTo8Bit_3(U32 * bits, U32 * eightBits, S32 dim);
|
||||
};
|
||||
|
||||
#endif // _BIT_RENDER_H_
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue