14 #ifndef OSG_MULTISAMPLE
15 #define OSG_MULTISAMPLE 1
19 #include <osg/StateAttribute>
20 #include <osg/ref_ptr>
23 #ifndef GL_ARB_multisample
24 #define GL_MULTISAMPLE_ARB 0x809D
25 #define GL_SAMPLE_ALPHA_TO_COVERAGE_ARB 0x809E
26 #define GL_SAMPLE_ALPHA_TO_ONE_ARB 0x809F
27 #define GL_SAMPLE_COVERAGE_ARB 0x80A0
28 #define GL_SAMPLE_BUFFERS_ARB 0x80A8
29 #define GL_SAMPLES_ARB 0x80A9
30 #define GL_SAMPLE_COVERAGE_VALUE_ARB 0x80AA
31 #define GL_SAMPLE_COVERAGE_INVERT_ARB 0x80AB
32 #define GL_MULTISAMPLE_BIT_ARB 0x20000000
34 #ifndef GL_NV_multisample_filter_hint
35 #define GL_MULTISAMPLE_FILTER_HINT_NV 0x8534
50 DONT_CARE = GL_DONT_CARE
58 _coverage(trans._coverage),
59 _invert(trans._invert),
84 inline void setCoverage(
float coverage) { _coverage=coverage; }
87 inline void setInvert(
bool invert) { _invert=invert; }
93 virtual void apply(
State& state)
const;
#define COMPARE_StateAttribute_Types(TYPE, rhs_attribute)
float getCoverage() const
void setSampleCoverage(float coverage, bool invert)
void setCoverage(float coverage)
#define META_StateAttribute(library, name, type)
virtual int compare(const StateAttribute &sa) const
#define COMPARE_StateAttribute_Parameter(parameter)
void setInvert(bool invert)
Multisample(const Multisample &trans, const CopyOp ©op=CopyOp::SHALLOW_COPY)