Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6981061
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T18:06:29+00:00 2026-05-27T18:06:29+00:00

I cannot find and interpret anything into my own knowledge of the usage of

  • 0

I cannot find and interpret anything into my own knowledge of the usage of glBitmap(). My aim for the usage of this function is to be able to render letters and text to the SDL screen using OpenGL.

My current error-filled code is:

#include <SDL/SDL.h>
#include <SDL/SDL_opengl.h>
#include "functionfile.h"

int main(int argc, char **argv)

{

glClear(GL_COLOR_BUFFER_BIT);

GLubyte A[14] = {
0x00,0x00,
0x60,0xc0,
0x3f,0x80,
0x00,0x00,
0x0a,0x00,
0x0a,0x00,
0x04,0x00,
};

init_ortho(640,480);

glBitmap(100,100,0,0,50,50,A);

glLoadIdentity();

SDL_GL_SwapBuffers();

SDL_Delay(5000);

SDL_Quit();

return 0;

}

which results in a white 100×100 pixels of unrecognizable fuzz in the window.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T18:06:29+00:00Added an answer on May 27, 2026 at 6:06 pm

    Please read the documentation of glBitmap and try to understand it. You’ve got some serious misconceptions.

    The first two parameters of glBitmap tell it, how large the image is you feed to it. It’s not the destination size. The other parameters influence how the raster position is adjusted. glBitmap does not scale the contents that go the screen. If your bitmap is 8×8 pixels, it will come out as 8×8 pixels.

    The Red Book has a rather nice section about glBitmap: http://fly.cc.fer.hr/~unreal/theredbook/chapter08.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i cannot find any way to execute this - all i need is to
I cannot find this in the documentation anywhere. Does anyone know if this is
I cannot find the solution for this problem, here is the simplified example: On
Hey, everyone. I couldn't find anything Googling this problem, and I've found really good
I'm surprised I cannot find any info on the internet on this common situation:
I cannot find this class in silverlight and searching the internet has been clueless.
I just forgot how to do this and cannot find a helpful tutorial on
This is a rather simple question, but I cannot find documentation about it from
Cannot find any example on Google.
I cannot find a maven repository for Lucene 4.0. I don't want to use

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.