start bisecting

This commit is contained in:
Hartmut Seichter 2020-12-02 23:31:06 +01:00
parent 455177d33e
commit 7e14aea49e
4 changed files with 86 additions and 87 deletions

View file

@ -8,7 +8,7 @@ pw.script:load_all()
print("hello pixwerx!")
local w = pw.window.new()
--w.visible = false
w.visible = false
-- set title
w.title = "pixwerx 0.1"
@ -31,7 +31,7 @@ end
-- setup a lua callback function as callback
w.on_update = function(self)
pl:draw()
-- print("test on update",w.position.x,w.position.y,pw.time.now)
-- print("test on update",w.position.x,w.position.y,pw.time.now)
end
-- show all displays

View file

@ -146,7 +146,6 @@ struct window::impl {
if (!glfwInit())
{
debug::e() << "Initalization error";
}
int glfw_major, glfx_minor,glfw_rev;
@ -159,8 +158,8 @@ struct window::impl {
update_display_list();
// request specific version 3.3
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 4);
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 0);
glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE);
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);

View file

@ -54,15 +54,15 @@ struct triangle_renderer
const float s = 1.0f;
#if 0
mesh::vertex3array_t vertices = {
#if 1
geometry::vertex3array_t vertices = {
{ 0.0f, 0.5f, z_val} // 0
,{ 0.5f, 0.0f, z_val} // 1
,{-0.5f, 0.0f, z_val} // 2
};
// actual indices
mesh::indexarray_t indices = { 0, 1, 2};
geometry::indexarray_t indices = { 0, 1, 2};
#else
@ -298,7 +298,7 @@ void pipeline::impl::draw()
// glClearColor(1.0,0,0,1);
// glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
// glViewport(0,0,800,600);
// glViewport(0,0,800,600);
//
// draw pass