MeshLib C++ Docs
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{
12
13
15{
17 int number{0};
19 std::string line;
20};
21
22using DisabledWarnings = std::vector<ShaderWarning>;
23
25MRVIEWER_API void createShader( const std::string& shader_name,
26 const std::string& vert_source,
27 const std::string& frag_source,
28 GLuint& prog_id,
29 const DisabledWarnings& suppressedWarns = {} );
30
32MRVIEWER_API void destroyShader( GLuint id );
33}
MRVIEWER_API void destroyShader(GLuint id)
Destroys shader program.
std::string line
some part of warning line to find
Definition MRCreateShader.h:19
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={})
This function creates shader and logs output.
int number
number is presented in some of gpu shader compilations output
Definition MRCreateShader.h:17
std::vector< ShaderWarning > DisabledWarnings
Definition MRCreateShader.h:22
only for bindings generation
Definition MRCameraOrientationPlugin.h:8
Definition MRCreateShader.h:15