MeshLib Documentation
Loading...
Searching...
No Matches
MRCreateShader.h
Go to the documentation of this file.
1#pragma once
2#include "exports.h"
3#include "MRGladGlfw.h"
4#include <string>
5#include <vector>
6
7
8namespace MR
9{
10
12{
13 // number is presented in some of gpu shader compilations output
14 int number{0};
15 // some part of warning line to find
16 std::string line;
17};
18
19using DisabledWarnings = std::vector<ShaderWarning>;
20
21// This function creates shader and logs output
22MRVIEWER_API void createShader( const std::string& shader_name,
23 const std::string& vert_source,
24 const std::string& frag_source,
25 GLuint& prog_id,
26 const DisabledWarnings& suppressedWarns = {} );
27
28// Destroys shader program
29MRVIEWER_API void destroyShader( GLuint id );
30}
Definition MRCameraOrientationPlugin.h:8
MRVIEWER_API void destroyShader(GLuint id)
MRVIEWER_API void createShader(const std::string &shader_name, const std::string &vert_source, const std::string &frag_source, GLuint &prog_id, const DisabledWarnings &suppressedWarns={})
std::vector< ShaderWarning > DisabledWarnings
Definition MRCreateShader.h:19
Definition MRCreateShader.h:12
std::string line
Definition MRCreateShader.h:16
int number
Definition MRCreateShader.h:14