Panda3D
Loading...
Searching...
No Matches
dxTextureContext9.I
Go to the documentation of this file.
1/**
2 * PANDA 3D SOFTWARE
3 * Copyright (c) Carnegie Mellon University. All rights reserved.
4 *
5 * All use of this software is subject to the terms of the revised BSD
6 * license. You should have received a copy of this license along
7 * with this source code in a file named "LICENSE."
8 *
9 * @file dxTextureContext9.I
10 * @author drose
11 * @date 2005-05-23
12 */
13
14/**
15 * Returns true if the texture was created with mipmaps, false otherwise.
16 */
18has_mipmaps() const {
19 return _has_mipmaps;
20}
21
22/**
23 * Returns the Direct3D object that represents the texture, whatever kind of
24 * texture it is.
25 */
26INLINE IDirect3DBaseTexture9 *DXTextureContext9::
27get_d3d_texture() const {
28 return _d3d_texture;
29}
30
31/**
32 * Returns the Direct3D object that represents the texture, in the case of a
33 * 1-d or 2-d texture.
34 */
35INLINE IDirect3DTexture9 *DXTextureContext9::
36get_d3d_2d_texture() const {
37 return _d3d_2d_texture;
38}
39
40/**
41 * Returns the Direct3D object that represents the texture, in the case of a
42 * 3-d texture.
43 */
44INLINE IDirect3DVolumeTexture9 *DXTextureContext9::
46 return _d3d_volume_texture;
47}
48
49/**
50 * Returns the Direct3D object that represents the texture, in the case of a
51 * cube map texture.
52 */
53INLINE IDirect3DCubeTexture9 *DXTextureContext9::
55 return _d3d_cube_texture;
56}
IDirect3DVolumeTexture9 * get_d3d_volume_texture() const
Returns the Direct3D object that represents the texture, in the case of a 3-d texture.
IDirect3DCubeTexture9 * get_d3d_cube_texture() const
Returns the Direct3D object that represents the texture, in the case of a cube map texture.
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.
IDirect3DBaseTexture9 * get_d3d_texture() const
Returns the Direct3D object that represents the texture, whatever kind of texture it is.
bool has_mipmaps() const
Returns true if the texture was created with mipmaps, false otherwise.