From 7d0f42ba1277edba0b55c82a35b187bd098befef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Eduardo=20Teixeira?= Date: Sun, 12 Dec 2021 14:04:59 -0300 Subject: [PATCH] Update README.md --- README.md | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/README.md b/README.md index 2e164434..c0223a2f 100644 --- a/README.md +++ b/README.md @@ -43,31 +43,3 @@ cd third_party/boost https://github.com/bobbahbrown/DMISharp/blob/master/DMISharp/DMIFile.cs - -# OPEN CV -https://docs.opencv.org/4.x/d7/d9f/tutorial_linux_install.html - - -const float verts[] = { - posX, posY, - posX + spriteWidth, posY, - posX + spriteWidth, posY + spriteHeight, - posX, posY + spriteHeight - }; - const float tw = float(spriteWidth) / texWidth; - const float th = float(spriteHeight) / texHeight; - const int numPerRow = texWidth / spriteWidth; - const float tx = (frameIndex % numPerRow) * tw; - const float ty = (frameIndex / numPerRow + 1) * th; - const float texVerts[] = { - tx, ty, - tx + tw, ty, - tx + tw, ty + th, - tx, ty + th - }; - - // ... Bind the texture, enable the proper arrays - - glVertexPointer(2, GL_FLOAT, verts); - glTexCoordPointer(2, GL_FLOAT, texVerts); - glDrawArrays(GL_TRI_STRIP, 0, 4); \ No newline at end of file