Jump to content

  • Log In with Google      Sign In   
  • Create Account

greenboxal

Member Since 26 Mar 2013
Offline Last Active Jul 08 2013 10:02 PM

Topics I've Started

OpenGL won't render anything

25 April 2013 - 12:34 PM

I'm writing a basic OpenGL framework in C# and I've got a problem that is holding me for 3 days.

 

I've managed to create the window, OpenGL context and all necessary things using OpenTK.

I can also clear the screen using glClear/glClearColor, but I can't render anything.

As I'm using an OpenTK assembly built with DEBUG any OpenGL error that I could get would be catch by OpenTK and a exception would be thrown but there are no errors.

 

I've working on this for 3 days and I have no clue of what is the problem. If someone need any piece of code to help me, just ask.

 

Vertex Shader:

Spoiler

 

Fragment Shader:

Spoiler

 

Test Vertices:

Spoiler

 

This would be a closed source engine but I'm pushing the code on GitHub so someone could help: https://github.com/GreenBoxDevelopment/gb3d

Some important files:

Test/SimpleTest/TestApp/TestGame.cs
Source/Engine/GreenBox3D/Graphics/*
Source/Engine/Platform/GreenBox3D.Platform.Windows/Graphics/*

 


PARTNERS