Skip to content
This repository was archived by the owner on Oct 19, 2023. It is now read-only.

Commit f2a628e

Browse files
author
MysteRys337
committed
feat: terminado projeto
1 parent d5a059f commit f2a628e

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed
0 Bytes
Binary file not shown.

qtproject/src/glwidget.cpp

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -264,13 +264,16 @@ void GLWidget::readOFFFile(const QString &fileName)
264264
unsigned int a, b, c, x;
265265

266266
stream >> line >> a >> b >> c;
267-
std::string::size_type sz; // alias of size_t
267+
std::string::size_type sz;
268268
int i_dec = std::stoi (line,&sz);
269+
269270
indices[i*3 ]=a;
270271
indices[i*3+1]=b;
271272
indices[i*3+2]=c;
273+
272274
i_dec -= 3;
273275
i++;
276+
274277
while(i_dec!= 0){
275278
stream >> x;
276279
indices[i*3 ]=a;
@@ -349,7 +352,7 @@ void GLWidget :: genTexCoordsCylinder ()
349352

350353
/**
351354
* @brief Para cada vértice são estimados os vetores tangentes.
352-
* Essa função foi baseada no método de Langeyl que usa o
355+
* Essa função foi baseada no método de Lengyel que usa o
353356
* mapeamento de normais como base
354357
*/
355358
void GLWidget :: genTangents ()
@@ -419,7 +422,7 @@ void GLWidget :: genTangents ()
419422
*/
420423
void GLWidget :: createVBOs ()
421424
{
422-
// Isso é pra não dar problemas de superposição e lixo nas variáveis
425+
// Para não dar problemas de superposição e lixo nas variáveis
423426
destroyVBOs();
424427

425428
// Usado pra armazenar a posição dos vertices
@@ -510,7 +513,7 @@ void GLWidget :: createShaders ()
510513
{
511514
destroyShaders();
512515

513-
// Carregar todos
516+
// Carregar todos os shaders
514517
QString vertexShaderFile[] = {":/shaders/vgouraud.glsl",
515518
":/shaders/vphong.glsl",
516519
":/shaders/vtexture.glsl",

0 commit comments

Comments
 (0)