CS::Graphics::AlphaTestOptions Struct Reference (Crystal Space 2.0 Public API Reference)

| ## Public API Reference

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Attributes
CS::Graphics::AlphaTestOptions Struct Reference

Alpha test options. More...

`#include <ivideo/rendermesh.h>`

List of all members.

## Public Attributes
AlphaTestFunction | func
| Comparison between source pixel alpha and threshold value.
float | threshold
| Threshold value the source pixel alpha is compared against.

## Detailed Description

Alpha test options.

These options take effect if:

- The mixmode alpha test type (bits CS_MIXMODE_ALPHATEST_MASK) is CS_MIXMODE_ALPHATEST_ENABLE.
- The alpha test type (bits CS_MIXMODE_ALPHATEST_MASK) is CS_MIXMODE_ALPHATEST_AUTO and the alpha type used is csAlphaMode::alphaBinary.

Definition at line 129 of file rendermesh.h.

## Member Data Documentation

AlphaTestFunction CS::Graphics::AlphaTestOptions::func

Comparison between source pixel alpha and threshold value.

Default atfGreaterEqual

Definition at line 140 of file rendermesh.h.

float CS::Graphics::AlphaTestOptions::threshold

Threshold value the source pixel alpha is compared against.

Default is 0.5

Definition at line 135 of file rendermesh.h.

The documentation for this struct was generated from the following file:

- ivideo/rendermesh.h