#include <proc_table_gles.h>
Public Types | |
| using | GLFunctionType = T |
Public Member Functions | |
| template<class... Args> | |
| auto | operator() (Args &&... args) const |
| Call the GL function with the appropriate parameters. Lookup the documentation for the GL function being called to understand the arguments and return types. The arguments types must match and will be type checked. | |
| constexpr bool | IsAvailable () const |
| void | Reset () |
Public Attributes | |
| std::string_view | name = {} |
| GLFunctionType * | function = nullptr |
| PFNGLGETERRORPROC | error_fn = nullptr |
| bool | log_calls = false |
Definition at line 79 of file proc_table_gles.h.
| using impeller::GLProc< T >::GLFunctionType = T |
Definition at line 80 of file proc_table_gles.h.
|
inlineconstexpr |
Definition at line 128 of file proc_table_gles.h.
References impeller::GLProc< T >::function.
Referenced by impeller::GLProc< T >::operator()().
|
inline |
Call the GL function with the appropriate parameters. Lookup the documentation for the GL function being called to understand the arguments and return types. The arguments types must match and will be type checked.
Definition at line 113 of file proc_table_gles.h.
References args, impeller::BuildGLArguments(), error, impeller::GLProc< T >::error_fn, FML_CHECK, FML_LOG, impeller::GLProc< T >::function, impeller::GLProc< T >::IsAvailable(), impeller::GLProc< T >::log_calls, and impeller::GLProc< T >::name.
|
inline |
Definition at line 130 of file proc_table_gles.h.
References impeller::GLProc< T >::error_fn, and impeller::GLProc< T >::function.
| PFNGLGETERRORPROC impeller::GLProc< T >::error_fn = nullptr |
An optional error function. If present, all calls will be followed by an error check.
Definition at line 96 of file proc_table_gles.h.
Referenced by impeller::GLProc< T >::operator()(), and impeller::GLProc< T >::Reset().
| GLFunctionType* impeller::GLProc< T >::function = nullptr |
The pointer to the GL function.
Definition at line 90 of file proc_table_gles.h.
Referenced by impeller::GLProc< T >::IsAvailable(), impeller::GLProc< T >::operator()(), and impeller::GLProc< T >::Reset().
| bool impeller::GLProc< T >::log_calls = false |
Whether the OpenGL call and its arguments should be logged.
Only works in IMPELLER_DEBUG and for environments where traditional tracing is hard. Expect log spam and only use during development.
Definition at line 104 of file proc_table_gles.h.
Referenced by impeller::GLProc< T >::operator()().
| std::string_view impeller::GLProc< T >::name = {} |
The name of the GL function.
Definition at line 85 of file proc_table_gles.h.
Referenced by impeller::GLProc< T >::operator()(), and impeller::testing::TEST().