Panda3D
 All Classes Functions Variables Enumerations
dxTextureContext9.I
1 // Filename: dxTextureContext9.I
2 // Created by: drose (23May05)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 
16 ////////////////////////////////////////////////////////////////////
17 // Function: DXTextureContext9::has_mipmaps
18 // Access: Public
19 // Description: Returns true if the texture was created with mipmaps,
20 // false otherwise.
21 ////////////////////////////////////////////////////////////////////
22 INLINE bool DXTextureContext9::
23 has_mipmaps() const {
24  return _has_mipmaps;
25 }
26 
27 ////////////////////////////////////////////////////////////////////
28 // Function: DXTextureContext9::get_d3d_texture
29 // Access: Public
30 // Description: Returns the Direct3D object that represents the
31 // texture, whatever kind of texture it is.
32 ////////////////////////////////////////////////////////////////////
33 INLINE IDirect3DBaseTexture9 *DXTextureContext9::
34 get_d3d_texture() const {
35  return _d3d_texture;
36 }
37 
38 ////////////////////////////////////////////////////////////////////
39 // Function: DXTextureContext9::get_d3d_2d_texture
40 // Access: Public
41 // Description: Returns the Direct3D object that represents the
42 // texture, in the case of a 1-d or 2-d texture.
43 ////////////////////////////////////////////////////////////////////
44 INLINE IDirect3DTexture9 *DXTextureContext9::
46  return _d3d_2d_texture;
47 }
48 
49 ////////////////////////////////////////////////////////////////////
50 // Function: DXTextureContext9::get_d3d_volume_texture
51 // Access: Public
52 // Description: Returns the Direct3D object that represents the
53 // texture, in the case of a 3-d texture.
54 ////////////////////////////////////////////////////////////////////
55 INLINE IDirect3DVolumeTexture9 *DXTextureContext9::
57  return _d3d_volume_texture;
58 }
59 
60 ////////////////////////////////////////////////////////////////////
61 // Function: DXTextureContext9::get_d3d_cube_texture
62 // Access: Public
63 // Description: Returns the Direct3D object that represents the
64 // texture, in the case of a cube map texture.
65 ////////////////////////////////////////////////////////////////////
66 INLINE IDirect3DCubeTexture9 *DXTextureContext9::
68  return _d3d_cube_texture;
69 }
IDirect3DBaseTexture9 * get_d3d_texture() const
Returns the Direct3D object that represents the texture, whatever kind of texture it is...
IDirect3DTexture9 * get_d3d_2d_texture() const
Returns the Direct3D object that represents the texture, in the case of a 1-d or 2-d texture...
IDirect3DVolumeTexture9 * get_d3d_volume_texture() const
Returns the Direct3D object that represents the texture, in the case of a 3-d texture.
bool has_mipmaps() const
Returns true if the texture was created with mipmaps, false otherwise.
IDirect3DCubeTexture9 * get_d3d_cube_texture() const
Returns the Direct3D object that represents the texture, in the case of a cube map texture...