Skip to content

Commit

Permalink
9.1.0: Easy Definitions for less grammar-heavy operations
Browse files Browse the repository at this point in the history
  • Loading branch information
catriverr committed Sep 24, 2024
1 parent 00e73a8 commit abd5a8d
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions lib/bin/easy.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
#include "cli/index.h"
#include "gmeng.h"

#include "src/textures.cpp"
#include "src/renderer.cpp"

/// GMENG EASY ANNOTATIONS
/// FOR EASIER USAGE OF THE ENGINE
/// LESS CAPABLE WITH OPTIONS BUT WILL BE MORE STABLE
/// AND BETTER FOR NEWER USERS


/// @since 9.1.0

/// GLOBALS

#define gmeng_version Gmeng::version
#define gmeng_gobal Gmeng::global
#define gmeng_functree Gmeng::functree

#define set_gmeng_arguments patch_argv_global
#define set_gmeng_cli_arguments Gmeng_Commandline::patch_argv

/// VGM Methods
#define vgm Gmeng::vgm_defaults

#define vgm_textures Gmeng::vgm_defaults::vg_textures
#define vgm_rmodels Gmeng::vgm_defaults::vg_rmodels

#define vgm_load Gmeng::_uread_into_vgm

#define vgm_texture(x) Gmeng::vd_find_texture( vgm_textures, x )
#define vgm_model(x) Gmeng::vd_find_model( vgm_rmodels, x )

/// THREADS

#define thread_catchup _gthread_catchup
#define join_threads Gmeng::_ujoin_threads
#define clear_threads Gmeng::_uclear_threads

#define LOG gm_log

/// RENDERER

#define DELTA_X Gmeng::_vcreate_vp2d_deltax
#define DELTA_Y Gmeng::_vcreate_vp2d_deltay

#define dp Gmeng::Renderer::drawpoint
#define vp Gmeng::Renderer::viewpoint

#define create_texture Gmeng::Renderer::generate_empty_texture
#define create_model Gmeng::Renderer::generate_empty_model

#define get_viewpoint Gmeng::Renderer::conv_dp

#define level_base_image Gmeng::_vget_renderscale2dpartial_scalar
#define level_current_image Gmeng::get_lvl_view
#define level_set_image Gmeng::emplace_lvl_camera

0 comments on commit abd5a8d

Please sign in to comment.