1. You don't need to register new window classes in every thread (unless they are different).
2. Your graphic card won't change during runtime, so you don't need to choose a pixel format for every...
Type: Posts; User: Shinta
1. You don't need to register new window classes in every thread (unless they are different).
2. Your graphic card won't change during runtime, so you don't need to choose a pixel format for every...
Looks like Z-fighting to me. To prevent that, you have to adjust the range of you Z-Buffer. Especially the near value. (Try to increase it, e.g. double the near value, and check if it gets better.)
Or much easier, you can use the gl.h (and maybe glext.h) from Microsoft to compile. Every function not found in the header files needs a (wgl)GetProcAddress() call. And GL_* symbols not found, have...
I've cleaned up my screensaver base and added a simple rotating demo object. You'll need Visual Studio 2010 because of the project files; also, the screensaver is based on MFC.
(Warning: The...
In preview mode, the calling arguments also contain a handel (HWND) to the preview window; but this handel is only good for aquiring the size and position of the preview window, so don't try to set a...
DescribePixelFormat() returns informations for ALL pixel formats, not just the OpenGL supported once. That includes printer formats and device independent (DRAW_TO_BITMAP) pixel formats. Some of...
Maybe they are doing it in software, but my FX 1400 (I know it is quite old) claims to do OpenGL 2.
Vendor: NVIDIA Corporation
Renderer: Quadro FX 1400/PCI/SSE2
Version: 2.1.2
try:
http://www.chip.de/downloads/DiskInternals-ZIP-Repair_31279559.html
only a few files from the TGS\WebSpace folder and the complete Win95 folder (as noted in the Readme.txt) can't be...
Concav polygons almost everytime need to be tesselated (splitted into triangles) to be drawn correctly!
SOLVED.
I replaced my calls to SetThreadLocale with calls to this little masterpiece:
typedef BOOL (WINAPI* SET_PREFERRED_UI_LANGUAGES_PROTOTYPE) (DWORD, PCWSTR, PULONG);...
I know this problem is not OpenGL related, but this is the only developer forum i'm signed in, and maybe someone knows how to solve my problem. So, i'm sorry.
Long time ago, I wrote a very simple...
How do you compile and link your program? Do you use some integrated development environment? If so, try adding the math3d.cpp to the source files.
Try to hide the window instead of closing/destroying it.
Or is it a modal window?
Also check if you release all OpenGL objects e.g. textures on closing.
I think the problem is, that (at least all systems I've tested) remote connections don't have a pixelformat with the requested settings.
|Color|Alpha|Depth|Accum|Stncl| AUX...
That is one way to do it.
The other, more common way, is to compile math3d.cpp as well and then link everything together.
Exactly, don't draw on other events than WM_PAINT. If you need a refresh of your opengl-context just invalidate it. This is also the way to go from onIdle- or timer-events. Even worker threads can...
Don't mix OpenGL and GDI (Graphics is the C# pendant to GDI Device Context).
'gr' is just a reference to the actual thing, but since it is not set to, let's say, the graphic object of your...
If you only want to use a red-shaded texture try using GL_RED instead of GL_LUMINANCE. If you want more colors, you need GL_COLOR_INDEX, but don't ask me, how to transfer the color palette.
But if...
If size not an issue I suggest to use a uncompressed image format like tga or bmp, that could be written in just 2 steps.
1. write the binary header (18 bytes for tga)
2. write the byte array...
I don't know much about vb but in C# you'll need to pin the array.
GCHandle p=GCHandle.Alloc(points, GCHandleType.Pinned);
try
{
glMap1f(target, u1, u2, stride, order,...
Maybe it is a different OpenGL renderer, have you checked the PixelFormat? Are they the same?
Aero is only a Part of the DWM (Desktop Window Manager), which is being deactivated on Fullscreen.
The new Desktop Window Manager with its Desktop Compositing Engine provides 3D accelerated window...
It's not very offical but the best I could find fast:
OpenGL and Windows Vista™
Windows Vista and OpenGL-the Facts
Yes, it is normal.
Hmm, shouldn't it look more like this? :
#ifndef WGL_3DL_stereo_control
#define WGL_3DL_stereo_control 1
#ifdef WGL_WGLEXT_PROTOTYPES
extern BOOL WINAPI wglSetStereoEmitterState3DL (HDC,...