project64/Source/Project64-video/DepthBufferRender.h

23 lines
616 B
C
Raw Normal View History

2021-03-02 02:13:17 +00:00
// Project64 - A Nintendo 64 emulator
// http://www.pj64-emu.com/
// Copyright(C) 2001-2021 Project64
// Copyright(C) 2003-2009 Sergey 'Gonetz' Lipski
// Copyright(C) 2002 Dave2001
// GNU/GPLv2 licensed: https://gnu.org/licenses/gpl-2.0.html
2013-04-04 21:22:19 +00:00
#ifndef DEPTH_BUFFER_RENDER_H
#define DEPTH_BUFFER_RENDER_H
struct vertexi
{
2017-04-26 10:23:36 +00:00
int x, y; // Screen position in 16:16 bit fixed point
2013-04-04 21:22:19 +00:00
int z; // z value in 16:16 bit fixed point
};
extern uint16_t * zLUT;
2013-04-04 21:22:19 +00:00
void ZLUT_init();
void ZLUT_release();
void Rasterize(vertexi * vtx, int vertices, int dzdx);
#endif //DEPTH_BUFFER_RENDER_H