Panda3D
|
00001 // Filename: dxTextureContext8.I 00002 // Created by: drose (23May05) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 00016 //////////////////////////////////////////////////////////////////// 00017 // Function: DXTextureContext8::has_mipmaps 00018 // Access: Public 00019 // Description: Returns true if the texture was created with mipmaps, 00020 // false otherwise. 00021 //////////////////////////////////////////////////////////////////// 00022 INLINE bool DXTextureContext8:: 00023 has_mipmaps() const { 00024 return _has_mipmaps; 00025 } 00026 00027 //////////////////////////////////////////////////////////////////// 00028 // Function: DXTextureContext8::get_d3d_texture 00029 // Access: Public 00030 // Description: Returns the Direct3D object that represents the 00031 // texture, whatever kind of texture it is. 00032 //////////////////////////////////////////////////////////////////// 00033 INLINE IDirect3DBaseTexture8 *DXTextureContext8:: 00034 get_d3d_texture() const { 00035 return _d3d_texture; 00036 } 00037 00038 //////////////////////////////////////////////////////////////////// 00039 // Function: DXTextureContext8::get_d3d_2d_texture 00040 // Access: Public 00041 // Description: Returns the Direct3D object that represents the 00042 // texture, in the case of a 1-d or 2-d texture. 00043 //////////////////////////////////////////////////////////////////// 00044 INLINE IDirect3DTexture8 *DXTextureContext8:: 00045 get_d3d_2d_texture() const { 00046 return _d3d_2d_texture; 00047 } 00048 00049 //////////////////////////////////////////////////////////////////// 00050 // Function: DXTextureContext8::get_d3d_volume_texture 00051 // Access: Public 00052 // Description: Returns the Direct3D object that represents the 00053 // texture, in the case of a 3-d texture. 00054 //////////////////////////////////////////////////////////////////// 00055 INLINE IDirect3DVolumeTexture8 *DXTextureContext8:: 00056 get_d3d_volume_texture() const { 00057 return _d3d_volume_texture; 00058 } 00059 00060 //////////////////////////////////////////////////////////////////// 00061 // Function: DXTextureContext8::get_d3d_cube_texture 00062 // Access: Public 00063 // Description: Returns the Direct3D object that represents the 00064 // texture, in the case of a cube map texture. 00065 //////////////////////////////////////////////////////////////////// 00066 INLINE IDirect3DCubeTexture8 *DXTextureContext8:: 00067 get_d3d_cube_texture() const { 00068 return _d3d_cube_texture; 00069 }