Open modi12jin opened 2 years ago
In file included from /home/jin/Arduino/libraries/tgx/src/Image.h:3592,
from /home/jin/Arduino/libraries/tgx/src/tgx.h:35,
from /home/jin/桌面/ESP32S3_3D/ESP32S3_3D.ino:6:
/home/jin/Arduino/libraries/tgx/src/Image.inl: In member function 'int tgx::Image<color_t>::_scanfill(int, int, color_t, color_t)':
/home/jin/Arduino/libraries/tgx/src/Image.inl:544:13: error: jump to label 'TGX_SCANFILL_SKIP' [-fpermissive]
TGX_SCANFILL_SKIP:
^~~~~~~~~~~~~~~~~
/home/jin/Arduino/libraries/tgx/src/Image.inl:532:31: note: from here
if (x >= x1) goto TGX_SCANFILL_SKIP;
^~~~~~~~~~~~~~~~~
/home/jin/Arduino/libraries/tgx/src/Image.inl:533:17: note: crosses initialization of 'int start'
int start = x + 1;
^~~~~
/home/jin/桌面/ESP32S3_3D/ESP32S3_3D.ino: At global scope:
/home/jin/桌面/ESP32S3_3D/ESP32S3_3D.ino:139:54: error: wrong number of template arguments (5, should be at least 1)
Renderer3D<RGB565, SLX, SLY, LOADED_SHADERS, uint16_t> renderer;
^
In file included from /home/jin/Arduino/libraries/tgx/src/tgx.h:37,
from /home/jin/桌面/ESP32S3_3D/ESP32S3_3D.ino:6:
/home/jin/Arduino/libraries/tgx/src/Renderer3D.h:92:11: note: provided for 'template<class color_t, int LOADED_SHADERS, class ZBUFFER_t> class tgx::Renderer3D'
class Renderer3D
^~~~~~~~~~
/home/jin/桌面/ESP32S3_3D/ESP32S3_3D.ino: In function 'void setup()':
/home/jin/桌面/ESP32S3_3D/ESP32S3_3D.ino:177:14: error: request for member 'setImage' in 'renderer', which is of non-class type 'int'
renderer.setImage(&imfb); // set the image to draw onto (ie the screen framebuffer)
^~~~~~~~
/home/jin/桌面/ESP32S3_3D/ESP32S3_3D.ino:178:14: error: request for member 'setZbuffer' in 'renderer', which is of non-class type 'int'
renderer.setZbuffer(zbuf); // set the z buffer for depth testing
^~~~~~~~~~
/home/jin/桌面/ESP32S3_3D/ESP32S3_3D.ino:179:14: error: request for member 'setPerspective' in 'renderer', which is of non-class type 'int'
renderer.setPerspective(45, ((float)SLX) / SLY, 1.0f, 100.0f); // set the perspective projection matrix.
^~~~~~~~~~~~~~
/home/jin/桌面/ESP32S3_3D/ESP32S3_3D.ino:180:14: error: request for member 'setMaterial' in 'renderer', which is of non-class type 'int'
renderer.setMaterial(RGBf(0.85f, 0.55f, 0.25f), 0.2f, 0.7f, 0.8f, 64); // bronze color with a lot of specular reflexion.
^~~~~~~~~~~
/home/jin/桌面/ESP32S3_3D/ESP32S3_3D.ino:181:14: error: request for member 'setOffset' in 'renderer', which is of non-class type 'int'
renderer.setOffset(0, 0);
^~~~~~~~~
/home/jin/桌面/ESP32S3_3D/ESP32S3_3D.ino:182:14: error: request for member 'setCulling' in 'renderer', which is of non-class type 'int'
renderer.setCulling(1);
^~~~~~~~~~
/home/jin/桌面/ESP32S3_3D/ESP32S3_3D.ino:183:14: error: request for member 'setTextureQuality' in 'renderer', which is of non-class type 'int'
renderer.setTextureQuality(TGX_SHADER_TEXTURE_NEAREST);
^~~~~~~~~~~~~~~~~
/home/jin/桌面/ESP32S3_3D/ESP32S3_3D.ino:184:14: error: request for member 'setTextureWrappingMode' in 'renderer', which is of non-class type 'int'
renderer.setTextureWrappingMode(TGX_SHADER_TEXTURE_WRAP_POW2);
^~~~~~~~~~~~~~~~~~~~~~
/home/jin/桌面/ESP32S3_3D/ESP32S3_3D.ino: In function 'void loop()':
/home/jin/桌面/ESP32S3_3D/ESP32S3_3D.ino:260:14: error: request for member 'setModelMatrix' in 'renderer', which is of non-class type 'int'
renderer.setModelMatrix(M);
^~~~~~~~~~~~~~
/home/jin/桌面/ESP32S3_3D/ESP32S3_3D.ino:264:14: error: request for member 'clearZbuffer' in 'renderer', which is of non-class type 'int'
renderer.clearZbuffer(); // clear the z-buffer
^~~~~~~~~~~~
/home/jin/桌面/ESP32S3_3D/ESP32S3_3D.ino:269:26: error: request for member 'setShaders' in 'renderer', which is of non-class type 'int'
case 0: renderer.setShaders(TGX_SHADER_GOURAUD | TGX_SHADER_TEXTURE);
^~~~~~~~~~
/home/jin/桌面/ESP32S3_3D/ESP32S3_3D.ino:270:26: error: request for member 'drawMesh' in 'renderer', which is of non-class type 'int'
renderer.drawMesh(&naruto_1, false);
^~~~~~~~
/home/jin/桌面/ESP32S3_3D/ESP32S3_3D.ino:273:26: error: request for member 'drawWireFrameMesh' in 'renderer', which is of non-class type 'int'
case 1: renderer.drawWireFrameMesh(&naruto_1, true);
^~~~~~~~~~~~~~~~~
/home/jin/桌面/ESP32S3_3D/ESP32S3_3D.ino:276:26: error: request for member 'setShaders' in 'renderer', which is of non-class type 'int'
case 2: renderer.setShaders(TGX_SHADER_FLAT);
^~~~~~~~~~
/home/jin/桌面/ESP32S3_3D/ESP32S3_3D.ino:277:26: error: request for member 'drawMesh' in 'renderer', which is of non-class type 'int'
renderer.drawMesh(&naruto_1, false);
^~~~~~~~
/home/jin/桌面/ESP32S3_3D/ESP32S3_3D.ino:280:26: error: request for member 'setShaders' in 'renderer', which is of non-class type 'int'
case 3: renderer.setShaders(TGX_SHADER_GOURAUD);
^~~~~~~~~~
/home/jin/桌面/ESP32S3_3D/ESP32S3_3D.ino:281:26: error: request for member 'drawMesh' in 'renderer', which is of non-class type 'int'
renderer.drawMesh(&naruto_1, false);
^~~~~~~~
exit status 1
Compilation error: wrong number of template arguments (5, should be at least 1)
Sorry to bother you! how to fix this error @vindar
https://github.com/lovyan03/LovyanGFX