Hi guys im new to java and opengl and im in the middle of a making a system to load and render bitmaps mainly for fonts. I got all the loading stuff working (at least i think it is) but i cant render the bitmap to my screen.

publicclassSprite {/** The image to be drawn for this sprite */privateImageimage;

/** * Create a new sprite based on an image * * @param image The image that is this sprite */publicSprite(Imageimage) {

this.image = image; }

/** * Get the width of the drawn sprite * * @return The width in pixels of this sprite */publicintgetWidth() {returnimage.getWidth(null); }

/** * Get the height of the drawn sprite * * @return The height in pixels of this sprite */publicintgetHeight() {returnimage.getHeight(null); }

/** * Draw the sprite onto the graphics context provided * * @param g The graphics context on which to draw the sprite * @param x The x location at which to draw the sprite * @param y The y location at which to draw the sprite */publicvoiddraw(Graphicsg,intx,inty) {

/** * A resource manager for sprites in the game. Its often quite important * how and where you get your game resources from. In most cases * it makes sense to have a central resource loader that goes away, gets * your resources and caches them for future use. * <p> * [singleton] * <p> * @author Kevin Glass */publicclassSpriteStore {/** The single instance of this class */privatestaticSpriteStoresingle = newSpriteStore();

/** * Get the single instance of this class * * @return The single instance of this class */publicstaticSpriteStoreget() {returnsingle; }

/** * Retrieve a sprite from the store * * @param ref The reference to the image to use for the sprite * @return A sprite instance containing an accelerate image of the request reference */publicSpritegetSprite(Stringref) {// if we've already got the sprite in the cache

Hi guys, i need help, im a java newbi and i have been trying this for days now and with out any luck.I need to flip an image horizontally about its x axis. I tried to negative the width (-image.getWidth())but i get really wierd results, the colour gets all messed up.

Hi guys, i need help, im a java newbi and i have been trying this for days now and with out any luck. I need to flip an image horizontally about its x axis. I tried to negative the width (-image.getWidth())but i get really wierd results, the colour gets all messed up.

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org