Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
A

Ajko

@Ajko
About
Posts
5
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Best way to search in a List<List
    A Ajko

    It's a list like this: List>

    C#

  • Best way to search in a List<List
    A Ajko

    I need to find an integer element in this 2d list and modify it.

    C#

  • Display text in listview style
    A Ajko

    Ok, but there must be a way to do it with C# or C I belive.

    C# csharp visual-studio

  • Display text in listview style
    A Ajko

    I like to display a text so that one can expand and minimize the chapters of the text. Like it's done in visual studio 05 in source code view, the methods can be expanded with the + sign. Hope someone can give me a hint! Thanks.

    C# csharp visual-studio

  • OpenGL directly on the desktop
    A Ajko

    I'm trying to add visual effects to the desktop. I want to be able to use the desktop as normal at the same time. This is what I have been coding so far. But the triangle is never painted to the screen. #include #include int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int iCmdShow) { HDC hDC; HGLRC hRC; float theta = 0.0f; PIXELFORMATDESCRIPTOR pfd; int format; // get the device context for the whole screen instead of a window hDC = GetWindowDC(NULL); // set the pixel format for the DC ZeroMemory( &pfd, sizeof( pfd ) ); pfd.nSize = sizeof( pfd ); pfd.nVersion = 1; pfd.dwFlags = PFD_DRAW_TO_WINDOW | PFD_SUPPORT_OPENGL | PFD_DOUBLEBUFFER; pfd.iPixelType = PFD_TYPE_RGBA; pfd.cColorBits = 24; pfd.cDepthBits = 16; pfd.iLayerType = PFD_MAIN_PLANE; format = ChoosePixelFormat( hDC, &pfd ); SetPixelFormat( hDC, format, &pfd ); // create and enable the render context (RC) hRC = wglCreateContext( hDC ); wglMakeCurrent( hDC, hRC ); while ( true ) { glClearColor( 0.0f, 0.0f, 0.0f, 0.0f ); glClear( GL_COLOR_BUFFER_BIT ); glPushMatrix(); glRotatef( theta, 0.0f, 0.0f, 1.0f ); glBegin( GL_TRIANGLES ); glColor3f( 1.0f, 0.0f, 0.0f ); glVertex2f( 0.0f, 1.0f ); glColor3f( 0.0f, 1.0f, 0.0f ); glVertex2f( 0.87f, -0.5f ); glColor3f( 0.0f, 0.0f, 1.0f ); glVertex2f( -0.87f, -0.5f ); glEnd(); glPopMatrix(); SwapBuffers( hDC ); theta += 1.0f; } return 0; } Have anyone done something like this before?

    Graphics graphics game-dev question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups