glBlendFunc: Unterschied zwischen den Versionen
Aus DGL Wiki
Flash (Diskussion | Beiträge) |
|||
| Zeile 1: | Zeile 1: | ||
| − | + | = glBlendFunc = | |
| + | <br> | ||
| + | == Name == | ||
| + | Die Funktion glBlendFunc bestimmt, wie Source- und Destinationfaktor beim Blending miteinander kombiniert werden sollen. | ||
| + | <br> | ||
| + | == Delphi-Spezifikation == | ||
| + | procedure(sfactor: TGLEnum; dfactor: TGLEnum); | ||
| + | <br> | ||
| + | == Parameter == | ||
| + | <table border=1> | ||
| + | <tr> | ||
| + | <td>'''Konstante'''</td> | ||
| + | <td>'''Berücksichtigte Faktoren'''</td> | ||
| + | <td>'''Berechneter Blendfaktor'''</td> | ||
| + | </tr> | ||
| + | <tr> | ||
| + | <td>''GL_ZERO''</td> | ||
| + | <td>source oder destination</td> | ||
| + | <td>(0, 0, 0, 0)</td> | ||
| + | </tr> | ||
| + | <tr> | ||
| + | <td>''GL_ONE''</td> | ||
| + | <td>source oder destination</td> | ||
| + | <td>(1, 1, 1, 1)</td> | ||
| + | </tr> | ||
| + | <tr> | ||
| + | <td>''GL_DST_COLOR''</td> | ||
| + | <td>source</td> | ||
| + | <td>(Rd, Gd, Bd, Ad)</td> | ||
| + | </tr> | ||
| + | <tr> | ||
| + | <td>''GL_SRC_COLOR''</td> | ||
| + | <td>destination</td> | ||
| + | <td>(Rs, Gs, Bs, As)</td> | ||
| + | </tr> | ||
| + | <tr> | ||
| + | <td>''GL_ONE_MINUS_DST_COLOR''</td> | ||
| + | <td>source</td> | ||
| + | <td>(1, 1, 1, 1)-(Rd, Gd, Bd, Ad)</td> | ||
| + | </tr> | ||
| + | <tr> | ||
| + | <td>''GL_ONE_MINUS_SRC_COLOR''</td> | ||
| + | <td>destination</td> | ||
| + | <td>(1, 1, 1, 1)-(Rs, Gs, Bs, As)</td> | ||
| + | </tr> | ||
| + | <tr> | ||
| + | <td>''GL_SRC_ALPHA''</td> | ||
| + | <td>source oder destination</td> | ||
| + | <td>(As, As, As, As)</td> | ||
| + | </tr> | ||
| + | <tr> | ||
| + | <td>''GL_ONE_MINUS_SRC_ALPHA''</td> | ||
| + | <td>source oder destination</td> | ||
| + | <td>(1, 1, 1, 1)-(As, As, As, As)</td> | ||
| + | </tr> | ||
| + | <tr> | ||
| + | <td>''GL_DST_ALPHA''</td> | ||
| + | <td>source oder destination</td> | ||
| + | <td>(Ad, Ad, Ad, Ad)</td> | ||
| + | </tr> | ||
| + | <tr> | ||
| + | <td>''GL_ONE_MINUS_DST_ALPHA''</td> | ||
| + | <td>source oder destination</td> | ||
| + | <td>(1, 1, 1, 1)-(Ad, Ad, Ad, Ad)</td> | ||
| + | </tr> | ||
| + | <tr> | ||
| + | <td>''GL_SRC_ALPHA_SATURATE''</td> | ||
| + | <td>source</td> | ||
| + | <td>(f, f, f, 1); f=min(As, 1-Ad)</td> | ||
| + | </tr> | ||
| + | </table> | ||
| + | <br> | ||
| + | == Beschreibung == | ||
| + | Die Funktion glBlendFunc bestimmt, wie Source- und Destinationfaktor beim Blending miteinander kombiniert werden sollen. | ||
| + | <br> | ||
| + | == Siehe auch == | ||
| + | [[glAlphaFunc]] | ||
| + | [[glClear]] | ||
| + | [[glDrawBuffer]] | ||
| + | [[glEnable]] | ||
| + | [[glLogicOp]] | ||
| + | [[glStencilFunc]] | ||
| − | + | [[Blenden|Blending]] | |
| − | |||
| − | [[ | ||
Version vom 5. Juli 2004, 22:19 Uhr
Inhaltsverzeichnis
glBlendFunc
Name
Die Funktion glBlendFunc bestimmt, wie Source- und Destinationfaktor beim Blending miteinander kombiniert werden sollen.
Delphi-Spezifikation
procedure(sfactor: TGLEnum; dfactor: TGLEnum);
Parameter
| Konstante | Berücksichtigte Faktoren | Berechneter Blendfaktor |
| GL_ZERO | source oder destination | (0, 0, 0, 0) |
| GL_ONE | source oder destination | (1, 1, 1, 1) |
| GL_DST_COLOR | source | (Rd, Gd, Bd, Ad) |
| GL_SRC_COLOR | destination | (Rs, Gs, Bs, As) |
| GL_ONE_MINUS_DST_COLOR | source | (1, 1, 1, 1)-(Rd, Gd, Bd, Ad) |
| GL_ONE_MINUS_SRC_COLOR | destination | (1, 1, 1, 1)-(Rs, Gs, Bs, As) |
| GL_SRC_ALPHA | source oder destination | (As, As, As, As) |
| GL_ONE_MINUS_SRC_ALPHA | source oder destination | (1, 1, 1, 1)-(As, As, As, As) |
| GL_DST_ALPHA | source oder destination | (Ad, Ad, Ad, Ad) |
| GL_ONE_MINUS_DST_ALPHA | source oder destination | (1, 1, 1, 1)-(Ad, Ad, Ad, Ad) |
| GL_SRC_ALPHA_SATURATE | source | (f, f, f, 1); f=min(As, 1-Ad) |
Beschreibung
Die Funktion glBlendFunc bestimmt, wie Source- und Destinationfaktor beim Blending miteinander kombiniert werden sollen.
Siehe auch
glAlphaFunc glClear glDrawBuffer glEnable glLogicOp glStencilFunc
Blending