summaryrefslogtreecommitdiffstats
path: root/src/detection/opengl/opengl.h
blob: f7ff9d5ea75a38e34291ac6d86dc05053138350e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#pragma once

#include "fastfetch.h"
#include "modules/opengl/option.h"

typedef struct FFOpenGLResult {
    FFstrbuf version;
    FFstrbuf renderer;
    FFstrbuf vendor;
    FFstrbuf slv;
    FFstrbuf library;
} FFOpenGLResult;

#define FF_OPENGL_BUFFER_WIDTH 1
#define FF_OPENGL_BUFFER_HEIGHT 1

const char* ffDetectOpenGL(FFOpenGLOptions* options, FFOpenGLResult* result);