diff options
| author | boris <wzn@moneybot.cc> | 2018-11-28 16:00:02 +1300 |
|---|---|---|
| committer | boris <wzn@moneybot.cc> | 2018-11-28 16:00:02 +1300 |
| commit | 3d412a4b30a9f7c7f51ea6562e694315948bd3da (patch) | |
| tree | 26d67dfd1f3e5fd12903ad13e85d0cb8bcf8f21c /cheat/gmod/visual.hpp | |
| parent | e4729e4393d90271a3814c7a79950a660c48325a (diff) | |
cleaned up
in short, the cheat and loader are now separate solutions. unused stuff was moved into the legacy solution in case anyone wants to compile it or whatever.
i can change this back if you want to. also, i configured the loader to compile in x64, and have separate build types for linux and win64
Diffstat (limited to 'cheat/gmod/visual.hpp')
| -rw-r--r-- | cheat/gmod/visual.hpp | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/cheat/gmod/visual.hpp b/cheat/gmod/visual.hpp new file mode 100644 index 0000000..748497f --- /dev/null +++ b/cheat/gmod/visual.hpp @@ -0,0 +1,51 @@ +#pragma once +#include <vector> +#include "interface.hpp" +#include "vector.hpp" +#include "color.hpp" +#include "d3d.hpp" +#include <unordered_map> +#include "strings.hpp" +#include "IVRenderView.hpp" + +class c_base_player; + +namespace features +{ + class c_visuals + { + void draw_line( const vec2_t& a, const vec2_t& b, const clr_t& clr ); + void draw_line( int x, int y, int x1, int y1, const clr_t& clr ); + void draw_rect( int x, int y, int w, int h, const clr_t& clr ); + void draw_filled_rect( int x, int y, int w, int h, const clr_t& clr ); + void draw_circle( int x, int y, int r, const clr_t& clr, int res = 48 ); + + void draw_really_big_string( int x, int y, const clr_t& clr, const char* msg, ... ); + void draw_string( int x, int y, int align, bool big, const clr_t& clr, const char* msg, ... ); + + struct stored_player_data_t + { + std::string m_rank{ }; + clr_t m_team_color{ }; + matrix3x4 m_matrix[ 128 ]{ }; + vec3_t m_pos{ }; + matrix3x4 m_coordinate_frame{ }; + }; + + struct stored_data_t + { + std::array< stored_player_data_t, 256 > m_player{ }; + VMatrix m_matrix{ }; + }; + + stored_data_t m_data{ }; + + void spectator_list( ); + void draw_players( ); + + public: + void operator( )( ); + void store_data( ); + VMatrix& get_matrix( ); + }; +}
\ No newline at end of file |
