1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
/*
PsychAlphaBlending.h
PLATFORMS:
Only OS X for now.
AUTHORS:
Allen Ingling awi Allen.Ingling@nyu.edu
HISTORY:
1/7/04 awi Wrote it
DESCRIPTION:
Functions for getting and setting the alpha blending rule in windows. To assure consistent treatement of state ONLY functions in this file should
be used as a gateway to modify Screen state.
*/
//include once
#ifndef PSYCH_IS_INCLUDED_PsychAlphaBlending
#define PSYCH_IS_INCLUDED_PsychAlphaBlending
#include "Screen.h"
int PsychGetAlphaBlendingFactorConstantFromString(char *blendString, GLenum *blendConstant);
int PsychGetAlphaBlendingFactorStringFromConstant(GLenum blendConstant, char *blendString);
void PsychInitWindowRecordAlphaBlendingFactors(PsychWindowRecordType *winRec);
psych_bool PsychValidateBlendingConstantForSource(GLenum sourceFactor);
psych_bool PsychValidateBlendingConstantForDestination(GLenum destinationFactor);
void PsychGetAlphaBlendingFactorsFromWindow(PsychWindowRecordType *winRec, GLenum *oldSource, GLenum *oldDestination);
void PsychStoreAlphaBlendingFactorsForWindow(PsychWindowRecordType *winRec, GLenum sourceBlendConstant, GLenum destinationBlendConstant);
void PsychUpdateAlphaBlendingFactorLazily(PsychWindowRecordType *winRec);
//end include once
#endif
|