Comments (14)
Yes, I can do that in next weeks. I already have a control based on
WinForms running on Windows and Linux.
Il giorno ven 5 giu 2015 00:22 AlexeyGapon [email protected] ha
scritto:
Hello. Can you create a tutorial how to create a control like
OpenTK.GLControl.—
Reply to this email directly or view it on GitHub
#1.
from opengl.net.
Hello so how it`s going?
from opengl.net.
Could you commit WinForm Control for OpenGL?
I don`t want to use OpenTK they are using almost own naming, and it makes my work much slower.
Thank you.
from opengl.net.
You can take the Tao.Framework User control implementation, and replace the
OpenGL calls with the ones of OpenGL.Net.
My control will be implemented in this way.
Il giorno Mar 30 Giu 2015 17:21 AlexeyGapon [email protected] ha
scritto:
Could you commit WinForm Control for OpenGL?
I don`t want to use OpenTK they are using there almost own naming, and it
makes my work much slower.
Thank you.—
Reply to this email directly or view it on GitHub
#1 (comment)
.
from opengl.net.
Oh thnak you
from opengl.net.
I did as you wrote, but it throws an error
///
/// OpenGL error checking.
/// </summary>
[Conditional("DEBUG")]
private static void DebugCheckErrors()
{
ErrorCode error = GetError();
if (error != ErrorCode.NoError)
throw new InvalidOperationException(error.ToString());
}
Invalid Operation when call Gl.End()
Output
has exited with code -1073741819 (0xc0000005) 'Access violation'.
from opengl.net.
In OpenGL.Net, in Debug build, every call to OpenGL API is checked for
errors (except a few, like GetError and TexImage).
Check the manual for glEnd, and you'll find the reason of the error.
Il giorno Mer 1 Lug 2015 12:46 AlexeyGapon [email protected] ha
scritto:
I did as you wrote, but it throws an error
////// OpenGL error checking.
///
[Conditional("DEBUG")]
private static void DebugCheckErrors()
{
ErrorCode error = GetError();if (error != ErrorCode.NoError) throw new InvalidOperationException(error.ToString()); }
Invalid Operation when call Gl.End()
—
Reply to this email directly or view it on GitHub
#1 (comment)
.
from opengl.net.
This code worked fine in in OpenTk and Tao. But here is an error.
I was sucessfuly implemented your api references for tao framework user control and it works but i cant call OpenGL drawings. It is crashing for some reason. I can give you all the code.
from opengl.net.
So did you test this src on some real projects? Is it save? Can i use it for the engine on OpenGL or it has many bugs?
Could you help me with calling OpenGl commands.And explain why there is an exception appears
StackOverflow says that i should not use glGetError in glBegin - glEnd. So i will disable this glGetError
it should work fine?
How to disable DEBUG mode?
from opengl.net.
Did you call glGetError after each routine in you original code?
The library is merely a wrapper, automatically generated using the XML
specification. So, if the glGetError returns an error, you can blame the
GPU driver or your code.
Possibly there are bugs, nobody can assure bug free implementations. I've
started some unit test, and successfully run on my machines. I'm using this
code base on a 170K SLOC project also.
A quick and dirty solution is to run with the release version, that exclude
glGetError calls. However, the exception indicates that the OpenGL call
sequence is wrong in some way.
Il giorno Mer 1 Lug 2015 17:18 AlexeyGapon [email protected] ha
scritto:
So did you test this src on some real projects? Is it save? Can i use it
for the engine on OpenGL or it has many bugs?
Could you help me with calling OpenGl commands.And explain why there is an
exception appears—
Reply to this email directly or view it on GitHub
#1 (comment)
.
from opengl.net.
I removed glGetError from the calls and everything works fine right now. I did`t test it for something real complex.I will continue writing my library using OpenGL.NET, and will report if something happend.
from opengl.net.
Keep in mind that you have a bug in your OpenGL code, located where the
exception is thrown.
You are just ignoring it.
Il giorno Gio 2 Lug 2015 10:27 AlexeyGapon [email protected] ha
scritto:
I removed glGetError from the calls and everything works fine right now. I
did`t test it for something real complex.I will continue writing my library
using OpenGL.NET, and will report if something happend.—
Reply to this email directly or view it on GitHub
#1 (comment)
.
from opengl.net.
I read in documentation that you cant call glGetError between glBegin() .. glEnd() that is why an error accure. My code drawing simple recangle. So there are can
t be bug in a code.
from opengl.net.
You are right. I'll fix it ASAP.
Il giorno Gio 2 Lug 2015 15:07 AlexeyGapon [email protected] ha
scritto:
I read in documentation that you can`t call glGetError between glBegin()
.. glEnd() that is why an error accure.—
Reply to this email directly or view it on GitHub
#1 (comment)
.
from opengl.net.
Related Issues (20)
- HelloTriangle (.NET Core) on Windows 10 not working HOT 3
- Hardware-accelerated Matrix4x4f results are different from software results HOT 3
- Switch the GlControl to OpenGl.Net.WinForms_net461 with running exception HOT 5
- Status of .NET Core 3 Support, and offer of help HOT 1
- DrawBufferMode Missing Enums for ColorAttachments HOT 1
- Changing to NVIDIA GeForce GTX 1650 causes initialisation fail HOT 2
- How to ask Control to draw triangle when I click a button on winform? HOT 1
- Visual Studio 2015 to 2019 glControl designer view crashes in windows 10 HOT 4
- Crash with CoreUI HOT 2
- glGenVertexArrays() shows NullReferenceException HOT 3
- Nothing works out of the box when I clone the repo and try and run the samples. HOT 4
- having trouble drawing anything (using VBO/vertex buffer/etc) HOT 1
- pwglCreateContextAttribsARB not implemented HOT 1
- Support for .Net 5 HOT 1
- Release OpenGL.NET netstandard2.0 to nuget
- KeyCode doesn't support Backspace, Page down or Page Up HOT 1
- 'Object reference not set to an instance of an object.' HOT 2
- Equivalent of Glu.LookAt HOT 1
- What to do with...
- GL_ARB_bindless_texture Object reference not set HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opengl.net.