~registry/dolphin-emu/triforce

« back to all changes in this revision

Viewing changes to Source/Core/VideoCommon/Src/BPFunctions.h

  • Committer: Sérgio Benjamim
  • Date: 2015-02-13 05:54:40 UTC
  • Revision ID: sergio_br2@yahoo.com.br-20150213055440-ey2rt3sjpy27km78
Dolphin Triforce branch from code.google, commit b957980 (4.0-315).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Copyright 2013 Dolphin Emulator Project
 
2
// Licensed under GPLv2
 
3
// Refer to the license.txt file included.
 
4
 
 
5
 
 
6
// ------------------------------------------
 
7
// Video backend must define these functions
 
8
// ------------------------------------------
 
9
 
 
10
#ifndef _BPFUNCTIONS_H
 
11
#define _BPFUNCTIONS_H
 
12
 
 
13
#include "BPMemory.h"
 
14
#include "VideoCommon.h"
 
15
 
 
16
namespace BPFunctions
 
17
{
 
18
 
 
19
enum
 
20
{
 
21
        CONFIG_ISWII = 0,
 
22
        CONFIG_DISABLEFOG,
 
23
        CONFIG_SHOWEFBREGIONS
 
24
};
 
25
 
 
26
void FlushPipeline();
 
27
void SetGenerationMode();
 
28
void SetScissor();
 
29
void SetLineWidth();
 
30
void SetDepthMode();
 
31
void SetBlendMode();
 
32
void SetDitherMode();
 
33
void SetLogicOpMode();
 
34
void SetColorMask();
 
35
void CopyEFB(u32 dstAddr, unsigned int dstFormat, unsigned int srcFormat,
 
36
        const EFBRectangle& srcRect, bool isIntensity, bool scaleByHalf);
 
37
void ClearScreen(const EFBRectangle &rc);
 
38
void OnPixelFormatChange();
 
39
u8 *GetPointer(const u32 &address);
 
40
bool GetConfig(const int &type);
 
41
void SetTextureMode(const BPCmd &bp);
 
42
void SetInterlacingMode(const BPCmd &bp);
 
43
};
 
44
 
 
45
#endif // _BPFUNCTIONS_H