[TriEmbed] TriEmbed Digest, Vol 83, Issue 15
Alex Davis
alexd at matrixwide.com
Wed Apr 22 10:15:40 CDT 2020
> 2. Re: C++ class templates in Arduino - problems (Jon Wolfe)
> 3. Re: C++ class templates in Arduino - problems (Robert Mackie)
Simplifying the program to just this:
#include "geometry.h"
const uint32_t imageWidth = 4095;
const uint32_t imageHeight = 4095;
// define the frame-buffer and the depth-buffer. Initialize depth buffer
// to far clipping plane.
Vec3<unsigned char> *frameBuffer = new Vec3<unsigned char>[imageWidth * imageHeight];
for (uint32_t i = 0; i < imageWidth * imageHeight; ++i) frameBuffer[i] = Vec3<unsigned char>(255);
// ----------------------------------------------
// setup
// ----------------------------------------------
void setup() {
}
// ----------------------------------------------
// main loop
// ----------------------------------------------
void loop() {
}
still results in the same compile error. Moving the new line into the include gives the same error.
Alex
--
"The theater of noise is proof of our potential."
|\ | (¯ \/ |¯\ |V| |\ ¯|¯ |¯) | \/ | | | |¯\ (¯ /¯ /\ |V|
|-||_ (_ /\ |_/ @| | |-| | | \ | /\ |^| | |_/ (_ . \_ \/ | |
You won't find me on Facebook.
More information about the TriEmbed
mailing list