2020-04-28 03:14:09 +02:00
|
|
|
#ifndef ENGINE_AA_HH
|
|
|
|
#define ENGINE_AA_HH
|
2020-04-18 02:20:17 +02:00
|
|
|
|
|
|
|
#include <shared/gl.hh>
|
|
|
|
|
|
|
|
#include <shared/geom.hh>
|
|
|
|
|
2020-06-23 00:23:13 +02:00
|
|
|
enum { AA_UNUSED = 0, AA_LUMA, AA_MASKED, AA_SPLIT, AA_SPLIT_LUMA, AA_SPLIT_MASKED };
|
|
|
|
|
2020-04-18 02:20:17 +02:00
|
|
|
extern matrix4 nojittermatrix;
|
|
|
|
|
|
|
|
void setaavelocityparams(GLenum tmu = GL_TEXTURE0);
|
|
|
|
|
|
|
|
void setupaa(int w, int h);
|
|
|
|
void jitteraa();
|
|
|
|
void doaa(GLuint outfbo, void (*resolve)(GLuint, int));
|
|
|
|
bool debugaa();
|
|
|
|
void cleanupaa();
|
|
|
|
|
|
|
|
void setaamask(bool val);
|
|
|
|
void enableaamask(int stencil = 0);
|
|
|
|
void disableaamask();
|
|
|
|
|
|
|
|
bool maskedaa();
|
|
|
|
bool multisampledaa();
|
|
|
|
|
|
|
|
#endif
|