我想用GL_POINTS绘制一些东西,但是~totalpoint / 3结果开始与输入相差1像素
我尝试了不同的glOrtho和glViewport参数,但没有改变
我的测试程序:
varpage = "start"
options = {"start" => "1,4,1,0,1,1,1,30,12,;1,4,1,2,1,1,1,30,29,;1,5,1,2,0,1,1,30,29,;1,4,1,2,0,1,1,30,29,;1,4,1,0,1,1,1,30,29,;"}
File.open("mmmm3", "w" do |f|
f.puts options[varpage]
end
结果:
未着色
色
答案 0 :(得分:0)
GLFWwindow* wmain = glfwCreateWindow(atoi(argv[1]), atoi(argv[2]), "test", 0, 0);
到
GLFWwindow* wmain = glfwCreateWindow(atoi(argv[1]) + 1, atoi(argv[2]) + 1, "test", 0, 0);