のねのBlog

パソコンの問題や、ソフトウェアの開発で起きた問題など書いていきます。よろしくお願いします^^。

背景が白っぽくなる

Frame18
===== 異なる部分 始め=====
glBindBuffer(target = GL_ELEMENT_ARRAY_BUFFER, buffer = 0)
glDeleteBuffers(n = 1, buffers = [140002])
glDeleteTextures(n = 1, textures = [140002])
glGenTextures(n = 1, textures = [2030029])
glBindTexture(target = GL_TEXTURE_2D, texture = 2030029)
glPixelStorei(pname = GL_UNPACK_ALIGNMENT, param = 1)
glTexImage2D(target = GL_TEXTURE_2D, level = 0, internalformat = 6406, width = 1024, height = 256, border = 0, format = GL_ALPHA, type = GL_UNSIGNED_BYTE, pixels = 0x0)
glTexParameteri(target = GL_TEXTURE_2D, pname = GL_TEXTURE_MIN_FILTER, param = 9728)
glTexParameteri(target = GL_TEXTURE_2D, pname = GL_TEXTURE_MAG_FILTER, param = 9728)
glTexParameteri(target = GL_TEXTURE_2D, pname = GL_TEXTURE_WRAP_S, param = 33071)
glTexParameteri(target = GL_TEXTURE_2D, pname = GL_TEXTURE_WRAP_T, param = 33071)
glGenBuffers(n = 1, buffers = [980014])
glBindBuffer(target = GL_ELEMENT_ARRAY_BUFFER, buffer = 980014)
glBufferData(target = GL_ELEMENT_ARRAY_BUFFER, size = 12288, data = [ 12288 bytes ], usage = GL_STATIC_DRAW)
===== 異なる部分 終わり=====

glViewport(x = 0, y = 0, width = 720, height = 1184)
glEnable(cap = GL_BLEND)
glPushGroupMarkerEXT(length = 0, marker = DecorView)
glScissor(x = 0, y = 1, width = 720, height = 1133)
glDisableVertexAttribArray(index = 1)
glUseProgram(program = 210003)
glUniformMatrix4fv(location = 1, count = 1, transpose = false, value = [0.0027777778, 0.0, 0.0, 0.0, 0.0, -0.0016891892, 0.0, 0.0, 0.0, 0.0, -1.0, 0.0, -1.0, 1.0, -0.0, 1.0])
glUniformMatrix4fv(location = 2, count = 1, transpose = false, value = [720.0, 0.0, 0.0, 0.0, 0.0, 1184.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0])
glUniform4f(location = 7, x = 0.000000, y = 0.000000, z = 0.000000, w = 1.000000)
glUniform4f(location = 8, x = 0.152941, y = 0.176471, z = 0.200000, w = 1.000000)
glBindTexture(target = GL_TEXTURE_2D, texture = 140002)
glUniform1i(location = 5, x = 0)
glUniform1f(location = 4, x = 0.250000)
glUniform1f(location = 6, x = 0.062500)
glUniformMatrix4fv(location = 3, count = 1, transpose = false, value = [0.0, -0.6081081, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0])
glBindBuffer(target = GL_ARRAY_BUFFER, buffer = 70001)
glVertexAttribPointer(indx = 0, size = 2, type = GL_FLOAT, normalized = false, stride = 16, ptr = 0x0)
glBindBuffer(target = GL_ELEMENT_ARRAY_BUFFER, buffer = 0)
glDrawArrays(mode = GL_TRIANGLE_STRIP, first = 0, count = 4)
glPushGroupMarkerEXT(length = 0, marker = LinearLayout)
Frame17
glViewport(x = 0, y = 0, width = 720, height = 1184)
glEnable(cap = GL_BLEND)
glPushGroupMarkerEXT(length = 0, marker = DecorView)
glScissor(x = 32, y = 1, width = 656, height = 1037)
glDisableVertexAttribArray(index = 1)
glUseProgram(program = 210003)
glUniformMatrix4fv(location = 1, count = 1, transpose = false, value = [0.0027777778, 0.0, 0.0, 0.0, 0.0, -0.0016891892, 0.0, 0.0, 0.0, 0.0, -1.0, 0.0, -1.0, 1.0, -0.0, 1.0])
glUniformMatrix4fv(location = 2, count = 1, transpose = false, value = [720.0, 0.0, 0.0, 0.0, 0.0, 1184.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0])
glUniform4f(location = 7, x = 0.000000, y = 0.000000, z = 0.000000, w = 1.000000)
glUniform4f(location = 8, x = 0.152941, y = 0.176471, z = 0.200000, w = 1.000000)
glBindTexture(target = GL_TEXTURE_2D, texture = 140002)
glUniform1i(location = 5, x = 0)
glUniform1f(location = 4, x = 0.250000)
glUniform1f(location = 6, x = 0.062500)
glUniformMatrix4fv(location = 3, count = 1, transpose = false, value = [0.0, -0.6081081, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0])
glBindBuffer(target = GL_ARRAY_BUFFER, buffer = 70001)
glVertexAttribPointer(indx = 0, size = 2, type = GL_FLOAT, normalized = false, stride = 16, ptr = 0x0)
glBindBuffer(target = GL_ELEMENT_ARRAY_BUFFER, buffer = 0)
glDrawArrays(mode = GL_TRIANGLE_STRIP, first = 0, count = 4)

OpenGL勉強会用 資料のページ