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
  1. Home
  2. General Programming
  3. C#
  4. Drawing time instead of numbers in opengl

Drawing time instead of numbers in opengl

Scheduled Pinned Locked Moved C#
graphicscsharpgame-devdata-structures
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Paul Harsent
    wrote on last edited by
    #1

    I have drawn a graph where at the moment the X points for the bars (drawn using boxes) is draw using numbers, but I now need to draw it using time. Im drawing boxes using a class. It is written in C# opengl. public void DrawBox(float p_X1, float p_X2, float p_Y1, float p_Y2, float p_R, float p_G, float p_B) { X1 = p_X1; X2 = p_X2; Y1 = p_Y1; Y2 = p_Y2; R = p_R; G = p_G; B = p_B; //Take the values passed in by the constructor Gl.glBegin(Gl.GL_POLYGON); Gl.glColor3f(R, G, B); Gl.glVertex2f(X1, Y1); Gl.glVertex2f(X2, Y1); Gl.glVertex2f(X2, Y2); Gl.glVertex2f(X1, Y2); Gl.glEnd(); } Thanks

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

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