blob: d1ab3c45fd8545a62df2ef1f1d8511ab62bc1cb1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#include <iostream>
struct NodeInfo { // structure that we want to transmit to our shaders
float x;
float y;
float s;
float c;
};
const int nbNodes = 100;
NodeInfo* data = new NodeInfo[nbNodes]; // our data that will be transmitted
// using float texture.
template <int i>
void printText(const char (&text)[i]) {
std::cout << text << std::endl;
}
int main() {
printText("some string constant");
return 0;
}
|