forked from alandefreitas/matplotplusplus
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
23 lines (20 loc) · 675 Bytes
/
main.cpp
File metadata and controls
23 lines (20 loc) · 675 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//
// Created by Alan Freitas on 26/08/20.
//
#include <matplot/matplot.h>
#include <matplot/backend/opengl_3.h>
int main() {
using namespace matplot;
// This is a demonstration of how we could create a new backend
// - This example backend will not draw the plots yet
// - See the opengl_3.h file for more information on how
// you can prepare a backend that will draw vertices
// - See figure::draw() for more information on how you can
// make the matplot objects send vertices to these
// backends
auto opengl3 = create_backend<backend::opengl_3>();
auto f = figure(true);
f->backend(opengl3);
f->draw();
return 0;
}