Assimp  v3.1.1 (June 2014)
jassimp.AiBlendMode Enum Reference

Defines alpha-blend flags. More...

Static Public Member Functions

static AiBlendMode fromRawValue (int rawValue)
 Utility method for converting from c/c++ based integer enums to java enums. More...
 

Public Attributes

 ADDITIVE =(0x1)
 Additive blending. More...
 
 DEFAULT =(0x0)
 Default blending. More...
 

Detailed Description

Defines alpha-blend flags.

If you're familiar with OpenGL or D3D, these flags aren't new to you. They define how the final color value of a pixel is computed, basing on the previous color at that pixel and the new color value from the material. The blend formula is:
SourceColor * SourceBlend + DestColor * DestBlend
where DestColor is the previous color in the framebuffer at this position and SourceColor is the material color before the transparency calculation.

Member Function Documentation

static AiBlendMode jassimp.AiBlendMode.fromRawValue ( int  rawValue)
inlinestatic

Utility method for converting from c/c++ based integer enums to java enums.

This method is intended to be used from JNI and my change based on implementation needs.

Parameters
rawValuean integer based enum value (as defined by assimp)
Returns
the enum value corresponding to rawValue

Member Data Documentation

jassimp.AiBlendMode.ADDITIVE =(0x1)

Additive blending.

Formula: SourceColor*1 + DestColor*1

jassimp.AiBlendMode.DEFAULT =(0x0)

Default blending.

Formula: SourceColor*SourceAlpha + DestColor*(1-SourceAlpha)


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