RetroArch
Classes | Typedefs | Functions
d3d8_common.h File Reference
#include <boolean.h>
#include <retro_common_api.h>
#include <retro_inline.h>
#include <d3d8.h>
#include "../video_driver.h"
#include "../../verbosity.h"
Include dependency graph for d3d8_common.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  d3d8_video
 

Typedefs

typedef RETRO_BEGIN_DECLS struct d3d8_video d3d8_video_t
 

Functions

static INLINE bool d3d8_swap (void *data, LPDIRECT3DDEVICE8 dev)
 
static INLINE voidd3d8_vertex_buffer_new (LPDIRECT3DDEVICE8 dev, unsigned length, unsigned usage, unsigned fvf, D3DPOOL pool, void *handle)
 
static INLINE voidd3d8_vertex_buffer_lock (LPDIRECT3DVERTEXBUFFER8 vertbuf)
 
static INLINE void d3d8_vertex_buffer_unlock (LPDIRECT3DVERTEXBUFFER8 vertbuf)
 
static INLINE void d3d8_vertex_buffer_free (LPDIRECT3DVERTEXBUFFER8 buf, void *vertex_declaration)
 
static INLINE bool d3d8_texture_get_level_desc (LPDIRECT3DTEXTURE8 tex, unsigned idx, void *_ppsurface_level)
 
static INLINE bool d3d8_texture_get_surface_level (LPDIRECT3DTEXTURE8 tex, unsigned idx, void **_ppsurface_level)
 
voidd3d8_texture_new (LPDIRECT3DDEVICE8 dev, const char *path, unsigned width, unsigned height, unsigned miplevels, unsigned usage, INT32 format, INT32 pool, unsigned filter, unsigned mipfilter, INT32 color_key, void *src_info_data, PALETTEENTRY *palette, bool want_mipmap)
 
static INLINE void d3d8_set_stream_source (LPDIRECT3DDEVICE8 dev, unsigned stream_no, LPDIRECT3DVERTEXBUFFER8 stream_vertbuf, unsigned offset_bytes, unsigned stride)
 
static INLINE void d3d8_texture_free (LPDIRECT3DTEXTURE8 tex)
 
static INLINE void d3d8_set_transform (LPDIRECT3DDEVICE8 dev, D3DTRANSFORMSTATETYPE state, const D3DMATRIX *matrix)
 
static INLINE void d3d8_set_texture_stage_state (LPDIRECT3DDEVICE8 dev, unsigned sampler, D3DTEXTURESTAGESTATETYPE type, unsigned value)
 
static INLINE void d3d8_set_sampler_address_u (LPDIRECT3DDEVICE8 dev, unsigned sampler, unsigned value)
 
static INLINE void d3d8_set_sampler_address_v (LPDIRECT3DDEVICE8 dev, unsigned sampler, unsigned value)
 
static INLINE void d3d8_set_sampler_minfilter (void *_dev, unsigned sampler, unsigned value)
 
static INLINE void d3d8_set_sampler_magfilter (void *_dev, unsigned sampler, unsigned value)
 
void d3d8_set_sampler_mipfilter (void *dev, unsigned sampler, unsigned value)
 
static INLINE bool d3d8_begin_scene (LPDIRECT3DDEVICE8 dev)
 
static INLINE void d3d8_end_scene (LPDIRECT3DDEVICE8 dev)
 
static INLINE void d3d8_draw_primitive (LPDIRECT3DDEVICE8 dev, D3DPRIMITIVETYPE type, unsigned start, unsigned count)
 
static INLINE void d3d8_clear (LPDIRECT3DDEVICE8 dev, unsigned count, const void *rects, unsigned flags, INT32 color, float z, unsigned stencil)
 
static INLINE bool d3d8_lock_rectangle (LPDIRECT3DTEXTURE8 tex, unsigned level, D3DLOCKED_RECT *lr, RECT *rect, unsigned rectangle_height, unsigned flags)
 
static INLINE void d3d8_unlock_rectangle (LPDIRECT3DTEXTURE8 tex)
 
static INLINE void d3d8_lock_rectangle_clear (void *tex, unsigned level, D3DLOCKED_RECT *lr, RECT *rect, unsigned rectangle_height, unsigned flags)
 
static INLINE void d3d8_set_texture (LPDIRECT3DDEVICE8 dev, unsigned sampler, LPDIRECT3DTEXTURE8 tex)
 
static INLINE bool d3d8_set_vertex_shader (LPDIRECT3DDEVICE8 dev, unsigned index, void *data)
 
static INLINE void d3d8_texture_blit (unsigned pixel_size, void *tex, D3DLOCKED_RECT *lr, const void *frame, unsigned width, unsigned height, unsigned pitch)
 
static INLINE void d3d8_set_viewports (LPDIRECT3DDEVICE8 dev, void *vp)
 
static INLINE void d3d8_set_render_state (LPDIRECT3DDEVICE8 dev, D3DRENDERSTATETYPE state, DWORD value)
 
static INLINE void d3d8_enable_blend_func (void *data)
 
static INLINE void d3d8_disable_blend_func (void *data)
 
static INLINE void d3d8_enable_alpha_blend_texture_func (void *data)
 
void d3d8_frame_postprocess (void *data)
 
static INLINE void d3d8_surface_free (LPDIRECT3DSURFACE8 surf)
 
static INLINE bool d3d8_device_get_render_target (LPDIRECT3DDEVICE8 dev, unsigned idx, void **data)
 
static INLINE void d3d8_device_set_render_target (LPDIRECT3DDEVICE8 dev, unsigned idx, LPDIRECT3DSURFACE8 surf)
 
static INLINE bool d3d8_get_render_state (LPDIRECT3DDEVICE8 dev, D3DRENDERSTATETYPE state, DWORD *value)
 
static INLINE bool d3d8_surface_lock_rect (LPDIRECT3DSURFACE8 surf, void *data2)
 
static INLINE void d3d8_surface_unlock_rect (LPDIRECT3DSURFACE8 surf)
 
static INLINE bool d3d8_get_adapter_display_mode (LPDIRECT3D8 d3d, unsigned idx, void *display_mode)
 
bool d3d8_create_device (void *dev, void *d3dpp, LPDIRECT3D8 d3d, HWND focus_window, unsigned cur_mon_id)
 
bool d3d8_reset (void *dev, void *d3dpp)
 
static INLINE bool d3d8_device_get_backbuffer (LPDIRECT3DDEVICE8 dev, unsigned idx, unsigned swapchain_idx, unsigned backbuffer_type, void **data)
 
static INLINE void d3d8_device_free (LPDIRECT3DDEVICE8 dev, LPDIRECT3D8 pd3d)
 
voidd3d8_create (void)
 
bool d3d8_initialize_symbols (enum gfx_ctx_api api)
 
void d3d8_deinitialize_symbols (void)
 
static INLINE bool d3d8_check_device_type (LPDIRECT3D8 d3d, unsigned idx, INT32 disp_format, INT32 backbuffer_format, bool windowed_mode)
 
bool d3d8x_create_font_indirect (LPDIRECT3DDEVICE8 dev, void *desc, void **font_data)
 
void d3d8x_font_draw_text (void *data, void *sprite_data, void *string_data, unsigned count, void *rect_data, unsigned format, unsigned color)
 
void d3d8x_font_get_text_metrics (void *data, void *metrics)
 
void d3d8x_font_release (void *data)
 
static INLINE INT32 d3d8_get_rgb565_format (void)
 
static INLINE INT32 d3d8_get_argb8888_format (void)
 
static INLINE INT32 d3d8_get_xrgb8888_format (void)
 

Typedef Documentation

◆ d3d8_video_t

Function Documentation

◆ d3d8_begin_scene()

static INLINE bool d3d8_begin_scene ( LPDIRECT3DDEVICE8  dev)
static
Here is the caller graph for this function:

◆ d3d8_check_device_type()

static INLINE bool d3d8_check_device_type ( LPDIRECT3D8  d3d,
unsigned  idx,
INT32  disp_format,
INT32  backbuffer_format,
bool  windowed_mode 
)
static

◆ d3d8_clear()

static INLINE void d3d8_clear ( LPDIRECT3DDEVICE8  dev,
unsigned  count,
const void rects,
unsigned  flags,
INT32  color,
float  z,
unsigned  stencil 
)
static
Here is the caller graph for this function:

◆ d3d8_create()

void* d3d8_create ( void  )
Here is the caller graph for this function:

◆ d3d8_create_device()

bool d3d8_create_device ( void dev,
void d3dpp,
LPDIRECT3D8  d3d,
HWND  focus_window,
unsigned  cur_mon_id 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ d3d8_deinitialize_symbols()

void d3d8_deinitialize_symbols ( void  )
Here is the caller graph for this function:

◆ d3d8_device_free()

static INLINE void d3d8_device_free ( LPDIRECT3DDEVICE8  dev,
LPDIRECT3D8  pd3d 
)
static
Here is the caller graph for this function:

◆ d3d8_device_get_backbuffer()

static INLINE bool d3d8_device_get_backbuffer ( LPDIRECT3DDEVICE8  dev,
unsigned  idx,
unsigned  swapchain_idx,
unsigned  backbuffer_type,
void **  data 
)
static
Here is the caller graph for this function:

◆ d3d8_device_get_render_target()

static INLINE bool d3d8_device_get_render_target ( LPDIRECT3DDEVICE8  dev,
unsigned  idx,
void **  data 
)
static

◆ d3d8_device_set_render_target()

static INLINE void d3d8_device_set_render_target ( LPDIRECT3DDEVICE8  dev,
unsigned  idx,
LPDIRECT3DSURFACE8  surf 
)
static

◆ d3d8_disable_blend_func()

static INLINE void d3d8_disable_blend_func ( void data)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ d3d8_draw_primitive()

static INLINE void d3d8_draw_primitive ( LPDIRECT3DDEVICE8  dev,
D3DPRIMITIVETYPE  type,
unsigned  start,
unsigned  count 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ d3d8_enable_alpha_blend_texture_func()

static INLINE void d3d8_enable_alpha_blend_texture_func ( void data)
static
Here is the call graph for this function:

◆ d3d8_enable_blend_func()

static INLINE void d3d8_enable_blend_func ( void data)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ d3d8_end_scene()

static INLINE void d3d8_end_scene ( LPDIRECT3DDEVICE8  dev)
static
Here is the caller graph for this function:

◆ d3d8_frame_postprocess()

void d3d8_frame_postprocess ( void data)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ d3d8_get_adapter_display_mode()

static INLINE bool d3d8_get_adapter_display_mode ( LPDIRECT3D8  d3d,
unsigned  idx,
void display_mode 
)
static
Here is the caller graph for this function:

◆ d3d8_get_argb8888_format()

static INLINE INT32 d3d8_get_argb8888_format ( void  )
static
Here is the caller graph for this function:

◆ d3d8_get_render_state()

static INLINE bool d3d8_get_render_state ( LPDIRECT3DDEVICE8  dev,
D3DRENDERSTATETYPE  state,
DWORD *  value 
)
static

◆ d3d8_get_rgb565_format()

static INLINE INT32 d3d8_get_rgb565_format ( void  )
static
Here is the caller graph for this function:

◆ d3d8_get_xrgb8888_format()

static INLINE INT32 d3d8_get_xrgb8888_format ( void  )
static
Here is the caller graph for this function:

◆ d3d8_initialize_symbols()

bool d3d8_initialize_symbols ( enum gfx_ctx_api  api)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ d3d8_lock_rectangle()

static INLINE bool d3d8_lock_rectangle ( LPDIRECT3DTEXTURE8  tex,
unsigned  level,
D3DLOCKED_RECT lr,
RECT *  rect,
unsigned  rectangle_height,
unsigned  flags 
)
static
Here is the caller graph for this function:

◆ d3d8_lock_rectangle_clear()

static INLINE void d3d8_lock_rectangle_clear ( void tex,
unsigned  level,
D3DLOCKED_RECT lr,
RECT *  rect,
unsigned  rectangle_height,
unsigned  flags 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ d3d8_reset()

bool d3d8_reset ( void dev,
void d3dpp 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ d3d8_set_render_state()

static INLINE void d3d8_set_render_state ( LPDIRECT3DDEVICE8  dev,
D3DRENDERSTATETYPE  state,
DWORD  value 
)
static
Here is the caller graph for this function:

◆ d3d8_set_sampler_address_u()

static INLINE void d3d8_set_sampler_address_u ( LPDIRECT3DDEVICE8  dev,
unsigned  sampler,
unsigned  value 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ d3d8_set_sampler_address_v()

static INLINE void d3d8_set_sampler_address_v ( LPDIRECT3DDEVICE8  dev,
unsigned  sampler,
unsigned  value 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ d3d8_set_sampler_magfilter()

static INLINE void d3d8_set_sampler_magfilter ( void _dev,
unsigned  sampler,
unsigned  value 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ d3d8_set_sampler_minfilter()

static INLINE void d3d8_set_sampler_minfilter ( void _dev,
unsigned  sampler,
unsigned  value 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ d3d8_set_sampler_mipfilter()

void d3d8_set_sampler_mipfilter ( void dev,
unsigned  sampler,
unsigned  value 
)

◆ d3d8_set_stream_source()

static INLINE void d3d8_set_stream_source ( LPDIRECT3DDEVICE8  dev,
unsigned  stream_no,
LPDIRECT3DVERTEXBUFFER8  stream_vertbuf,
unsigned  offset_bytes,
unsigned  stride 
)
static
Here is the caller graph for this function:

◆ d3d8_set_texture()

static INLINE void d3d8_set_texture ( LPDIRECT3DDEVICE8  dev,
unsigned  sampler,
LPDIRECT3DTEXTURE8  tex 
)
static
Here is the caller graph for this function:

◆ d3d8_set_texture_stage_state()

static INLINE void d3d8_set_texture_stage_state ( LPDIRECT3DDEVICE8  dev,
unsigned  sampler,
D3DTEXTURESTAGESTATETYPE  type,
unsigned  value 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ d3d8_set_transform()

static INLINE void d3d8_set_transform ( LPDIRECT3DDEVICE8  dev,
D3DTRANSFORMSTATETYPE  state,
const D3DMATRIX matrix 
)
static
Here is the caller graph for this function:

◆ d3d8_set_vertex_shader()

static INLINE bool d3d8_set_vertex_shader ( LPDIRECT3DDEVICE8  dev,
unsigned  index,
void data 
)
static
Here is the caller graph for this function:

◆ d3d8_set_viewports()

static INLINE void d3d8_set_viewports ( LPDIRECT3DDEVICE8  dev,
void vp 
)
static
Here is the caller graph for this function:

◆ d3d8_surface_free()

static INLINE void d3d8_surface_free ( LPDIRECT3DSURFACE8  surf)
static
Here is the caller graph for this function:

◆ d3d8_surface_lock_rect()

static INLINE bool d3d8_surface_lock_rect ( LPDIRECT3DSURFACE8  surf,
void data2 
)
static

◆ d3d8_surface_unlock_rect()

static INLINE void d3d8_surface_unlock_rect ( LPDIRECT3DSURFACE8  surf)
static

◆ d3d8_swap()

static INLINE bool d3d8_swap ( void data,
LPDIRECT3DDEVICE8  dev 
)
static
Here is the caller graph for this function:

◆ d3d8_texture_blit()

static INLINE void d3d8_texture_blit ( unsigned  pixel_size,
void tex,
D3DLOCKED_RECT lr,
const void frame,
unsigned  width,
unsigned  height,
unsigned  pitch 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ d3d8_texture_free()

static INLINE void d3d8_texture_free ( LPDIRECT3DTEXTURE8  tex)
static
Here is the caller graph for this function:

◆ d3d8_texture_get_level_desc()

static INLINE bool d3d8_texture_get_level_desc ( LPDIRECT3DTEXTURE8  tex,
unsigned  idx,
void _ppsurface_level 
)
static
Here is the caller graph for this function:

◆ d3d8_texture_get_surface_level()

static INLINE bool d3d8_texture_get_surface_level ( LPDIRECT3DTEXTURE8  tex,
unsigned  idx,
void **  _ppsurface_level 
)
static

◆ d3d8_texture_new()

void* d3d8_texture_new ( LPDIRECT3DDEVICE8  dev,
const char *  path,
unsigned  width,
unsigned  height,
unsigned  miplevels,
unsigned  usage,
INT32  format,
INT32  pool,
unsigned  filter,
unsigned  mipfilter,
INT32  color_key,
void src_info_data,
PALETTEENTRY *  palette,
bool  want_mipmap 
)
Here is the caller graph for this function:

◆ d3d8_unlock_rectangle()

static INLINE void d3d8_unlock_rectangle ( LPDIRECT3DTEXTURE8  tex)
static
Here is the caller graph for this function:

◆ d3d8_vertex_buffer_free()

static INLINE void d3d8_vertex_buffer_free ( LPDIRECT3DVERTEXBUFFER8  buf,
void vertex_declaration 
)
static
Here is the caller graph for this function:

◆ d3d8_vertex_buffer_lock()

static INLINE void* d3d8_vertex_buffer_lock ( LPDIRECT3DVERTEXBUFFER8  vertbuf)
static
Here is the caller graph for this function:

◆ d3d8_vertex_buffer_new()

static INLINE void* d3d8_vertex_buffer_new ( LPDIRECT3DDEVICE8  dev,
unsigned  length,
unsigned  usage,
unsigned  fvf,
D3DPOOL  pool,
void handle 
)
static
Here is the caller graph for this function:

◆ d3d8_vertex_buffer_unlock()

static INLINE void d3d8_vertex_buffer_unlock ( LPDIRECT3DVERTEXBUFFER8  vertbuf)
static
Here is the caller graph for this function:

◆ d3d8x_create_font_indirect()

bool d3d8x_create_font_indirect ( LPDIRECT3DDEVICE8  dev,
void desc,
void **  font_data 
)

◆ d3d8x_font_draw_text()

void d3d8x_font_draw_text ( void data,
void sprite_data,
void string_data,
unsigned  count,
void rect_data,
unsigned  format,
unsigned  color 
)

◆ d3d8x_font_get_text_metrics()

void d3d8x_font_get_text_metrics ( void data,
void metrics 
)

◆ d3d8x_font_release()

void d3d8x_font_release ( void data)