Menu

[025cc2]: / DirectPython11 / DPEffect.hpp  Maximize  Restore  History

Download this file

50 lines (35 with data), 1.0 kB

 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
44
45
46
47
48
/*
Copyright (C) 2010, Heikki Salo
All rights reserved.
Distributed under the BSD license:
http://www.opensource.org/licenses/bsd-license.php
*/
#ifndef DP_EFFECT_HPP
#define DP_EFFECT_HPP
#include "stdafx.h"
#include "DPBase.hpp"
class DPView;
class DPMatrix;
class DPVector;
class DPBuffer;
class DPEffect : DPBase {
public:
~DPEffect();
DPEffect(const char*, python::object&, UINT);
void release();
void apply(UINT, UINT);
void applyStr(const char*, UINT);
python::list getTechniques();
python::list getPasses(UINT);
python::object get(const char*);
void set(const char*, python::object&);
void setView(const char*, DPView&);
void setMatrix(const char*, DPMatrix&);
void setBuffer(const char*, DPBuffer&);
void setRaw(const char*, python::object&);
ID3DX11Effect* getEffect() { return effect; }
private:
ID3DX11Effect* effect;
ID3DX11EffectVariable* getVariable(const char*);
};
#endif
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.