Skip to content

Latest commit

 

History

History
291 lines (183 loc) · 9.53 KB

renderer.md

File metadata and controls

291 lines (183 loc) · 9.53 KB

🧶 renderer

Functions:

draw_text

renderer.draw_text(x, y, std::string text, ImFont* font, float red, float green, float blue, float alpha, flags): void

Name Type
x/y float
flags font_flags

draw_text_clipped

renderer.draw_text_clipped(x, y, std::string text, ImFont* font,float_red,float_green,float_blue,float_alpha,flags,clipped_x,clipped_y, clipped_h,clipped_w): void

Name Type
x/y float
clipped_x/y/h/w float

get_font_range

renderer.get_font_range(font_range range): ImWchar*

add_font

renderer.add_font(std::string name, std::string font_file, float size, bool bold, ImWchar* range): ImFont*

add_merge_font

renderer.add_merge_font(std::string font_file, float size, bool bold, ImWchar* range): void

build_fonts

renderer.build_fonts() void

find_font

renderer.find_font(std::string name): ImFont*

get_font

renderer.get_font(fonts font): ImFont*

create_font

renderer.create_font(std::string name, std::string data, int size, bool bold, bool merge, float font_size): ImFont*

get_text_size

renderer.get_text_size(std::string text, ImFont* font): c_vector2d``

draw_player_profile_picture

renderer.draw_player_profile_picture(index,x,y,rounding,medium_size): void

Name Type
index int
x/y float
rounding float
medium_size bool

get_world_to_screen

renderer.get_world_to_screen(x,y,z): c_vector2d

Name Type
x/y/z float

draw_line

renderer.draw_line(x,y,end_x,end_y,float_red,float_green,float_blue,float_alpha,thickness): void

Name Type
x/y/end_x/end_y float
thickness float

draw_thickline

renderer.draw_thickline(x,y,end_x,end_y,float_red,float_green,float_blue,float_alpha): void

Name Type
x/y/end_x/end_y float

draw_line_multicolored

renderer.draw_line_multicolored(x,y,end_x,end_y,float_red1,float_green1,float_blue1,float_alpha1,float_red2,float_green2,float_blue2,float_alpha2): void

Name Type
x/y/end_x/end_y float

draw_rectangle

renderer.draw_rectangle(x,y,size_x,size_y,float_red,float_green,float_blue,float_alpha,rounding): void

Name Type
x/y/size_x/size_y float
rounding float

draw_rectangle_filled

renderer.draw_rectangle_filled(x,y,size_x,size_y,float_red,float_green,float_blue,float_alpha,rounding): void

x/y/size_x/size_y float
rounding float

draw_rectangle_multicolored

renderer.draw_rectangle_multicolored(x,y,size_x,size_y,float_red1,float_green1,float_blue1,float_alpha1,float_red2,float_green2,float_blue2,float_alpha2,horizontal): void

Name Type
x/y/size_x/size_y float
horizontal bool

draw_rectangle_multicolored_4

renderer.draw_rectangle_multicolored_4(x,y,size_x,size_y,float_red1,float_green1,float_blue1,float_alpha1,float_red2,float_green2,float_blue2,float_alpha2,float_red3,float_green3,float_blue3,float_alpha3,float_red4,float_green4,float_blue4,float_alpha4): void

draw_triangle

renderer.draw_triangle(x1,y1,x2,y2,x3,y3,float_red,float_green,float_blue,float_alpha): void

draw_triangle_filled

renderer.draw_triangle_filled(x1,y1,x2,y2,x3,y3,float_red,float_green,float_blue,float_alpha): void

triangle_multicolored

renderer.triangle_multicolored(x1,y1,x2,y2,x3,y3,float_red1,float_green1,float_blue1,float_alpha1,float_red2,float_green2,float_blue2,float_alpha2,float_red3,float_green3,float_blue3,float_alpha3): void

draw_circle

renderer.draw_circle(x,y,size,float_red,float_green,float_blue,float_alpha,segments,thickness): void

Name Type
x/y float
size float
segments float
thickness float

draw_circle_filled

renderer.draw_circle_filled(x,y,size,float_red,float_green,float_blue,float_alpha,segments): void

Name Type
x/y float
size float
segments float

draw_parallelogram

renderer.draw_parallelogram(x1,y1,x2,y2,float_red,float_green,float_blue,float_alpha,thickness,side,radius): void

Name Type
x1/y1/x2/y2 float
thickness float
side float
radius float

draw_parallelogram_filled

renderer.draw_parallelogram_filled(x1,y1,x2,y2,float_red,float_green,float_blue,float_alpha,side,radius): void

Name Type
x1/y1/x2/y2 float
side float
radius float

draw_parallelogram_multicolored

renderer.draw_parallelogram_multicolored(x1,y1,x2,y2,float_red1,float_green1,float_blue1,float_alpha1,float_red2,float_green2,float_blue2,float_alpha2,thickness,side,radius): void

Name Type
x1/y1/x2/y2 float
thickness float
side float
radius float

draw_image

renderer.draw_image(LPDIRECT3DTEXTURE9 texture, float start_x, float start_y, float size_x, float size_y, float red, float green, float blue, float alpha, float rounding): c_vector2d

create_texture

renderer.create_texture(std::string data, int size): LPDIRECT3DTEXTURE9

get_texture

renderer.get_texture(textures texture): LPDIRECT3DTEXTURE9

get_center

renderer.get_center(): c_vector2d

get_screen_width

renderer.get_screen_width(): float

get_screen_height

renderer.get_screen_height(): float

path_clear

renderer.path_clear(): void

path_add_line

renderer.path_add_line(x,y): void

path_fill

renderer.path_fill(float_red,float_green,float_blue,float_alpha): void

path_stroke

renderer.path_stroke(float_red,float_green,float_blue,float_alpha,flags,thickness): void

Name Type
flags path_flags
thickness float

path_arc

renderer.path_arc(x,y,size,a_min,a_max,num_segments): void

Name Type
x/y float
size float
a_min/max float
num_segments int

path_arc_fast

renderer.path_arc_fast(x,y,size,a_min,a_max): void

Name Type
x/y float
size float
a_min/max float

path_bezier_cubic_curve

renderer.path_arc_fast(x1,y1,x2,y2,x3,y3,num_segments): void

Name Type
x/y float
num_segments int

path_bezier_quadratic_curve

renderer.path_bezier_quadratic_curve(x1,y1,x2,y2,num_segments): void

Name Type
x/y float
num_segments int

path_rectangle

renderer.path_rectangle(x1,y1,x2,y2,rounding,flags): void

Name Type
x/y float
rounding float
flags path_flags

disable_scope_drawing

renderer.disable_scope_drawing(bool set_value): void