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 7713795
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T01:57:48+00:00 2026-06-01T01:57:48+00:00

https://i.stack.imgur.com/bRXcy.png This image is a 78*24 image of the alphabet, with each letter in

  • 0

https://i.stack.imgur.com/bRXcy.png

This image is a 78*24 image of the alphabet, with each letter in a 6*6, so 52 total squares.

Wouldn’t using glTexCoord to get a single letter out of that image get kind of tedious?

  GL11.glTexCoord2f(0,0);

  GL11.glTexCoord2f(0.0769f,0);

  GL11.glTexCoord2f(0.0769f,0.25f);

  GL11.glTexCoord2f(0,0.25f);

Since 1/13(0.0769) of 78 is 6 and 1/4(0.25) of 24 is 6, is this kind of what I’m looking to do, to single out a letter? I’m just making sure this is the way to go.

  • 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-06-01T01:57:50+00:00Added an answer on June 1, 2026 at 1:57 am

    You might want to write a function/method to create the texture coordinates for a single character. Since you know the number of characters as well as the dimensions you might just pass the character into that method, calculate the coordinates and return those, e.g.

    Vector2D[] getCharacterCoords(char c) {
      //calculate the coords with the knowledge that you have 78 * 24 pixels and a character is 6 * 6
      //thus resulting in a 13 * 4 character grid.
    
      //Note: since ASCII 'A' is code 65 and 'a' is 97 you'd need to subtract those values accordingly
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a plot like this: https://i.stack.imgur.com/zdike.png I need the data coordinates of points
I have this kind of pattern https://i.stack.imgur.com/PT6WL.png in big part of PSD, and how
I have a html document that has this structure: https://i.stack.imgur.com/zrOq1.png <- sorry for link,
(This question could be better off on math, but im not sure) https://i.stack.imgur.com/ujPJG.png This
https://i.stack.imgur.com/zYpqd.png how can i remove space? is there any property for this? or maybe
i have this simplified Model: https://i.stack.imgur.com/d2WsV.png I have these Elements ordered in an NSOutlineView
My idea is to implement something like this: https://i.stack.imgur.com/8BmW5.png screenshot is from here: http://www.thedrum.co.uk/opinion/2012/03/08/five-ways-new-facebook-timeline-will-impact-brands
I need a UITextField to look like this as per the client's request https://i.stack.imgur.com/mLh4Q.png
one small issue in my movieplayer..![movieplayer shows like this] 1 : https://i.stack.imgur.com/WujxB.png but i
I am making a top menu, and it looks like this: https://i.stack.imgur.com/5O5G5.png The contact

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.