AllegroFlare/Shaders/Base
view source (cpp, hpp, quintessence) • view tests (test file)
  
    Properties
     
  | type | std::string | 
  | vertex_source_code | std::string | 
  | fragment_source_code | std::string | 
  | shader | ALLEGRO_SHADER* | 
  | initialized | bool | 
  | TYPE | char* | 
    
     Methods
     
  | is_type(std::string possible_type="") | 
  | get_al_shader() | 
  | initialize() | 
  | attach_source_code(bool throw_on_error=true) | 
  | build() | 
  | destroy() | 
  | activate() | 
  | deactivate() | 
  | global_deactivate() | 
  | set_sampler(std::string name="[unset-name]", ALLEGRO_BITMAP* bitmap=nullptr, int unit=0) | 
  | set_mat4(std::string name="[unset-name]", ALLEGRO_TRANSFORM* transform=nullptr) | 
  | set_int(std::string name="[unset-name]", int value=0) | 
  | set_float(std::string name="[unset-name]", float value=0.0f) | 
  | set_bool(std::string name="[unset-name]", bool value=false) | 
  | set_vec2(std::string name="[unset-name]", float x=0.0f, float y=0.0f) | 
  | set_vec3(std::string name="[unset-name]", float x=0.0f, float y=0.0f, float z=0.0f) | 
  | set_vec3(std::string name="[unset-name]", AllegroFlare::Vec3D vec={}) | 
  | set_vec4(std::string name="[unset-name]", float x=0.0f, float y=0.0f, float z=0.0f, float a=0.0f) | 
  | set_sampler_cube(std::string name="[unset-name]", AllegroFlare::Cubemap* cubemap=nullptr, int unit=0) | 
  | hotload(std::string vertex_source_code="", std::string fragment_source_code="") | 
    
     Dependencies
     
  | {"symbol"=>"ALLEGRO_SHADER", "headers"=>["allegro5/allegro.h"]} | 
  | {"symbol"=>"ALLEGRO_BITMAP", "headers"=>["allegro5/allegro.h"]} | 
  | {"symbol"=>"ALLEGRO_TRANSFORM", "headers"=>["allegro5/allegro.h"]} | 
  | {"symbol"=>"AllegroFlare::Vec3D", "headers"=>["AllegroFlare/Vec3D.hpp"]} | 
  | {"symbol"=>"AllegroFlare::Cubemap", "headers"=>["AllegroFlare/Cubemap.hpp"]} | 
  | {"symbol"=>"AllegroFlare::CubemapTextureBinder", "headers"=>["AllegroFlare/CubemapTextureBinder.hpp"]} | 
  | {"symbol"=>"AllegroFlare::Logger", "headers"=>["AllegroFlare/Logger.hpp"]} | 
    
    
Sponsor
Get the best designed cat shirts at clubatt.com