Skip to content

Latest commit

 

History

History
193 lines (174 loc) · 3.89 KB

File metadata and controls

193 lines (174 loc) · 3.89 KB

Class list

Class list for rg::engine

  • window
  • event
  • built_in
  • user_event target_event
  • thread
  • timer
  • application
  • log
  • scene game_object light
  • camera

Class method list

rg::engine::window

  • constructor(name, posx, posy, width, height)
  • copy_constructor = delete
  • move constructor
  • move assignment
  • attach_scene(scene_id)
  • attahc_camera(camera_id, view_port_function)
  • detach_camera(camera_id)
  • detach_scene
  • handle_event(event)
  • change_title
  • is_hidden
  • show(bool)
  • id
  • has_scene

rg::engine::event

  • constructor
  • move constructor
  • copy constructor
  • virtual type
  • virtual get_sdl_event
  • virtual deconstructor

rg::engine::built_in_event

extends rg::engine::event

  • constructor(SDL_Event)
  • copy constructor
  • move constructor
  • operator =&
  • operator =&&

rg::engine::user_event

extends rg::engine::event

  • constructor(scene_id)
  • copy constructor
  • move constructor
  • operator =&
  • operator =&&
  • virtual code
  • scene_id
  • static register_event Advice is provide static function for returning event code received from register_event

rg::engine::target_event

extends rg::engine::user_event

  • constructor(scene_id, obj_id)
  • copy constructor
  • move constructor
  • operator =&
  • operator =&&
  • obj_id

rg::engine::thread

  • constructor(function ,args)
  • move = delete
  • copy = delete
  • operator =& =delete
  • operator =&& = delete
  • join

rg::engine::timer

  • constructor(timems, scene_id, obj_id, timer_id, repeat)
  • copy = delete
  • move constructor
  • move assignment
  • start
  • stop
  • pause

rg::engine::log

  • static init(to_file : boolean, base_name)
  • static danger//red
  • static info//green
  • static debug//blue
  • static warning//yellow

rg::engine::application

  • static init(argc, argv)
  • static add_scene(scene)
  • static add_window(window)
  • static create_thread(function, args)
  • static post_event(event)
  • static main_loop
  • static logger()

rg::engine::scene

  • add_object(game_object, position)
  • get_object(id)
  • collision(object)
  • pause events
  • resume events
  • broadcast(event)
  • notify(object_id, event)
  • remove_object(id)
  • get_objects maybe implement this
  • render
  • handle_event
  • add_camera(camera)
  • remove_camera(camera_id)
  • attach(window)
  • detach(window)

rg::engine::game_object

  • virtual on_frame
  • virtual handle_event(event)
  • virtual on_collision
  • virtual render
  • virtual copy
  • apply_transformations
  • position
  • set_position(position)
  • rotation
  • set_rotation
  • scale
  • set_scale
  • move
  • rotate
  • stretch
  • show()
  • visable

rg::engine::id

  • static random_id
  • static name_id
  • static null_id
  • static is_null_id

rg::engine::light

  • constructor(position, color)
  • position
  • color
  • turn_on(id)
  • apply(id)
  • turn_off(id)

rg::engine::color

  • constructor(string hex html color)
  • constructor(r, g, b)
  • html_color
  • red
  • green
  • blue

rg::engine::camera

  • constructor()
  • copy constructor
  • virtual apply
  • virtual deconstructor
  • virtual copy

rg::engine::orthogonal_camera

extends rg::engine::camera

  • constructor(left, right, up, down, near, far)
  • move(x, y)
  • set_near_clip(near)
  • set_far_clip(far)
  • get_near_clip
  • get_far_clip

rg::engine::perspective_camera

extends rg::engine::camera

  • constructor(eye, point,fovy, aspect, znear, zfar)
  • copy_constructor
  • eye
  • point
  • set_eye
  • set_point
  • fovy
  • set_fovy
  • aspect
  • set_aspect
  • near
  • far
  • set_near
  • set_far