14 #ifndef DXTEXTURECONTEXT9_H 15 #define DXTEXTURECONTEXT9_H 33 void delete_texture();
36 INLINE
bool has_mipmaps()
const;
37 INLINE IDirect3DBaseTexture9 *get_d3d_texture()
const;
38 INLINE IDirect3DTexture9 *get_d3d_2d_texture()
const;
39 INLINE IDirect3DVolumeTexture9 *get_d3d_volume_texture()
const;
40 INLINE IDirect3DCubeTexture9 *get_d3d_cube_texture()
const;
42 static HRESULT d3d_surface_to_texture(RECT &source_rect,
43 IDirect3DSurface9 *d3d_surface,
48 HRESULT fill_d3d_texture_mipmap_pixels(
int mip_level,
int depth_index, D3DFORMAT source_format);
49 HRESULT fill_d3d_texture_pixels(
DXScreenData &scrn,
bool compress_texture);
50 HRESULT fill_d3d_volume_texture_pixels(
DXScreenData &scrn);
51 static int down_to_power_2(
int value);
52 unsigned int get_bits_per_pixel(Texture::Format format,
int *alphbits);
53 PN_stdfloat d3d_format_to_bytes_per_pixel (D3DFORMAT format);
56 D3DFORMAT _d3d_format;
57 IDirect3DBaseTexture9 *_d3d_texture;
58 IDirect3DTexture9 *_d3d_2d_texture;
59 IDirect3DVolumeTexture9 *_d3d_volume_texture;
60 IDirect3DCubeTexture9 *_d3d_cube_texture;
66 bool _is_render_target;
72 static void init_type() {
73 TextureContext::init_type();
75 TextureContext::get_class_type());
78 return get_class_type();
80 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
Represents a texture object, which is typically a single 2-d image but may also represent a 1-d or 3-...
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A table of objects that are saved within the graphics context for reference by handle later.
An offscreen render buffer.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.