#include "meshoptimizer.h"
#include <assert.h>
#include <float.h>
#include <string.h>
namespace meshopt
{
const int kViewport = …;
struct OverdrawBuffer
{ … };
#ifndef min
#define min(a, b) …
#endif
#ifndef max
#define max(a, b) …
#endif
static float computeDepthGradients(float& dzdx, float& dzdy, float x1, float y1, float z1, float x2, float y2, float z2, float x3, float y3, float z3)
{ … }
static void rasterize(OverdrawBuffer* buffer, float v1x, float v1y, float v1z, float v2x, float v2y, float v2z, float v3x, float v3y, float v3z)
{ … }
}
meshopt_OverdrawStatistics meshopt_analyzeOverdraw(const unsigned int* indices, size_t index_count, const float* vertex_positions, size_t vertex_count, size_t vertex_positions_stride)
{ … }