File: PsychAlphaBlending.h

package info (click to toggle)
psychtoolbox-3 3.0.19.14.dfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 86,796 kB
  • sloc: ansic: 176,245; cpp: 20,103; objc: 5,393; sh: 2,753; python: 1,397; php: 384; makefile: 193; java: 113
file content (43 lines) | stat: -rw-r--r-- 1,282 bytes parent folder | download | duplicates (7)
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