Menu

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

Download this file

35 lines (25 with data), 740 Bytes

 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
/*
Copyright (C) 2010, Heikki Salo
All rights reserved.
Distributed under the BSD license:
http://www.opensource.org/licenses/bsd-license.php
*/
#ifndef DP_BASE_HPP
#define DP_BASE_HPP
#include "stdafx.h"
class DPBase : boost::noncopyable {
public:
virtual ~DPBase();
DPBase() : d3d11device(0), immediateContext(0) { }
void init(ID3D11DeviceChild*);
void init(ID3D11Device*);
ID3D11Device* getDevice() { return d3d11device; }
ID3D11DeviceContext* getContext() { return immediateContext; }
private:
ID3D11Device* d3d11device;
ID3D11DeviceContext* immediateContext;
/*
void saveSelf(ID3D11DeviceChild*);
DPBase* getSelf();*/
};
#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.