RetroArch
Instance Methods | Class Methods | Protected Attributes | Properties | List of all members
MetalRaster Class Reference
Inheritance diagram for MetalRaster:
[legend]
Collaboration diagram for MetalRaster:
[legend]

Instance Methods

(instancetype) - initWithDriver:fontPath:fontSize:
 
(int) - getWidthForMessage:length:scale:
 
(const struct font_glyph *) - getGlyph:
 
(bool- _initializeState [implementation]
 
(void- updateGlyph: [implementation]
 
(void- _renderLine:video:length:scale:color:posX:posY:aligned: [implementation]
 
(void- _flush [implementation]
 
(void- renderMessage:video:scale:color:posX:posY:aligned: [implementation]
 
(void- renderMessage:video:params: [implementation]
 

Class Methods

(static INLINE void+ write_quad6 [implementation]
 

Protected Attributes

__weak MetalDriver_driver
 
const font_renderer_driver_t_font_driver
 
void_font_data
 
struct font_atlas_atlas
 
NSUInteger _stride
 
id< MTLBuffer > _buffer
 
id< MTLTexture > _texture
 
id< MTLRenderPipelineState > _state
 
id< MTLSamplerState > _sampler
 
Context_context
 
Uniforms _uniforms
 
id< MTLBuffer > _vert
 
unsigned _capacity
 
unsigned _offset
 
unsigned _vertices
 

Properties

struct font_atlasatlas
 

Method Documentation

◆ _flush()

- (void) _flush
implementation
Here is the call graph for this function:
Here is the caller graph for this function:

◆ _initializeState()

- (bool) _initializeState
implementation
Here is the call graph for this function:
Here is the caller graph for this function:

◆ _renderLine:video:length:scale:color:posX:posY:aligned:()

- (void) _renderLine: (const char *)  msg
video: (video_frame_info_t *)  video
length: (NSUInteger)  length
scale: (float)  scale
color: (vector_float4)  color
posX: (float)  posX
posY: (float)  posY
aligned: (unsigned)  aligned 
implementation
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getGlyph:()

- (const struct font_glyph *) getGlyph: (uint32_t code
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getWidthForMessage:length:scale:()

- (int) getWidthForMessage: (const char *)  msg
length: (NSUInteger)  length
scale: (float)  scale 
Here is the call graph for this function:
Here is the caller graph for this function:

◆ initWithDriver:fontPath:fontSize:()

- (instancetype) initWithDriver: (MetalDriver *)  driver
fontPath: (const char *)  font_path
fontSize: (unsigned)  font_size 
Here is the call graph for this function:

◆ renderMessage:video:params:()

- (void) renderMessage: (const char *)  msg
video: (video_frame_info_t *)  video
params: (const struct font_params *)  params 
implementation
Here is the call graph for this function:
Here is the caller graph for this function:

◆ renderMessage:video:scale:color:posX:posY:aligned:()

- (void) renderMessage: (const char *)  msg
video: (video_frame_info_t *)  video
scale: (float)  scale
color: (vector_float4)  color
posX: (float)  posX
posY: (float)  posY
aligned: (unsigned)  aligned 
implementation
Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateGlyph:()

- (void) updateGlyph: (const struct font_glyph *)  glyph
implementation
Here is the call graph for this function:
Here is the caller graph for this function:

◆ write_quad6()

+ (static INLINE void) write_quad6 (SpriteVertex *)  pv
(float)  x
(float)  y
(float)  width
(float)  height
(float)  tex_x
(float)  tex_y
(float)  tex_width
(float)  tex_height
(const vector_float4 *)  color 
implementation

Member Data Documentation

◆ _atlas

- (struct font_atlas*) _atlas
protected

◆ _buffer

- (id<MTLBuffer>) _buffer
protected

◆ _capacity

- (unsigned) _capacity
protected

◆ _context

- (Context*) _context
protected

◆ _driver

- (__weak MetalDriver*) _driver
protected

◆ _font_data

- (void*) _font_data
protected

◆ _font_driver

- (const font_renderer_driver_t*) _font_driver
protected

◆ _offset

- (unsigned) _offset
protected

◆ _sampler

- (id<MTLSamplerState>) _sampler
protected

◆ _state

- (id<MTLRenderPipelineState>) _state
protected

◆ _stride

- (NSUInteger) _stride
protected

◆ _texture

- (id<MTLTexture>) _texture
protected

◆ _uniforms

- (Uniforms) _uniforms
protected

◆ _vert

- (id<MTLBuffer>) _vert
protected

◆ _vertices

- (unsigned) _vertices
protected

Property Documentation

◆ atlas

- (struct font_atlas*) atlas

The documentation for this class was generated from the following file: