15 #ifndef DXTEXTURECONTEXT9_H 16 #define DXTEXTURECONTEXT9_H 18 #include "dxgsg9base.h" 20 #include "textureContext.h" 35 void delete_texture();
38 INLINE
bool has_mipmaps()
const;
39 INLINE IDirect3DBaseTexture9 *get_d3d_texture()
const;
40 INLINE IDirect3DTexture9 *get_d3d_2d_texture()
const;
41 INLINE IDirect3DVolumeTexture9 *get_d3d_volume_texture()
const;
42 INLINE IDirect3DCubeTexture9 *get_d3d_cube_texture()
const;
44 static HRESULT d3d_surface_to_texture(RECT &source_rect,
45 IDirect3DSurface9 *d3d_surface,
50 HRESULT fill_d3d_texture_mipmap_pixels(
int mip_level,
int depth_index, D3DFORMAT source_format);
51 HRESULT fill_d3d_texture_pixels(
DXScreenData &scrn,
bool compress_texture);
52 HRESULT fill_d3d_volume_texture_pixels(
DXScreenData &scrn);
53 static int down_to_power_2(
int value);
54 unsigned int get_bits_per_pixel(Texture::Format format,
int *alphbits);
55 PN_stdfloat d3d_format_to_bytes_per_pixel (D3DFORMAT format);
58 D3DFORMAT _d3d_format;
59 IDirect3DBaseTexture9 *_d3d_texture;
60 IDirect3DTexture9 *_d3d_2d_texture;
61 IDirect3DVolumeTexture9 *_d3d_volume_texture;
62 IDirect3DCubeTexture9 *_d3d_cube_texture;
68 bool _is_render_target;
74 static void init_type() {
75 TextureContext::init_type();
76 register_type(_type_handle,
"DXTextureContext9",
77 TextureContext::get_class_type());
80 return get_class_type();
82 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
90 #include "dxTextureContext9.I" Represents a texture object, which is typically a single 2-d image but may also represent a 1-d or 3-...
This is a special class object that holds all the information returned by a particular GSG to indicat...
virtual void evict_lru()
Evicts the page from the LRU.
A table of objects that are saved within the graphics context for reference by handle later...
An offscreen render buffer.
TypeHandle is the identifier used to differentiate C++ class types.