[coding] OpenGL draw custom text? menu

Shout-Out

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 15 of 30
  1. #1
    qazz's Avatar Member
    Reputation
    1
    Join Date
    Feb 2007
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [coding] OpenGL draw custom text?

    Well i have the will to code a dll file with some simple patching memory functions for start.

    But part of the main goal is for me to create a menu for the hack, so you can toggle easily anything you desire.

    I noticed that in WoW.exe's memory is loaded opengl32.dll

    I have the following 2 procedures (i code in delphi btw)

    Code:
     
    procedure glPrint(bs: integer; s: pchar); // draw text
    begin
    glPushAttrib($00020000);
    oldglListBase(bs - 32);
    oldglCallLists(length(s), $1401, s);
    glPopAttrib;
    end;
    Code:
     
    procedure DrawMenuText(x, y, bs: integer; s: pchar; red, green, blue: single); // draw menu text
    begin
    glColor4f(0, 0, 0, 1); // set gray color
    oldglRasterPos2f(x+3, y+3); // set text coord
    glPrint(bs,s); // print text
     
    glColor4f(red,green,blue,1); // set new color
    oldglRasterPos2f(x,y); // set text coord
    glPrint(bs,s); // draw colored text
    end;
    So far so good ... this code is not working for me, nothing is being drawn if i use the following for example:

    Code:
    drawmenutext(swidth-80-80,120,base,'my greeny text is here',0,1,0);
    So anyway, my question is for you to help me a little bit more what should i use to draw 2D custom text (with custom coords,color) in WoW?

    Please excues my bad english, and i am sorry if i posted it in the wrong section but i suppose that dll injections and hooking ogl functions should be in "memory editing" :wave:

    [coding] OpenGL draw custom text?
  2. #2
    jjaa's Avatar Contributor
    Reputation
    245
    Join Date
    Dec 2006
    Posts
    562
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    WoW uses Direct X...

  3. #3
    kynox's Avatar Member
    Reputation
    830
    Join Date
    Dec 2006
    Posts
    888
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by jjaa View Post
    WoW uses Direct X...
    Unless the -opengl switch is active

  4. #4
    Cypher's Avatar Kynox's Sister's Pimp
    Reputation
    1358
    Join Date
    Apr 2006
    Posts
    5,368
    Thanks G/R
    0/6
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by kynox View Post
    Unless the -opengl switch is active

    Yeah, but who actually uses that? Even Wine does better when its running under DX.

  5. #5
    suicidity's Avatar Contributor
    Reputation
    207
    Join Date
    Oct 2006
    Posts
    1,439
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Not on a Mac, OpenGL support probably stemmed solely because of the Mac;

    But what the above posters said, Either use DirectX or Enable your OpenGL.


  6. #6
    Cypher's Avatar Kynox's Sister's Pimp
    Reputation
    1358
    Join Date
    Apr 2006
    Posts
    5,368
    Thanks G/R
    0/6
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by suicidity View Post
    Not on a Mac, OpenGL support probably stemmed solely because of the Mac;

    But what the above posters said, Either use DirectX or Enable your OpenGL.

    Pfft. Mac. Just download linux and throw some money in the bin, its pretty much the same thing.

  7. #7
    ramey's Avatar Member
    Reputation
    45
    Join Date
    Jan 2008
    Posts
    320
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Have a look at WoWX.

  8. #8
    suicidity's Avatar Contributor
    Reputation
    207
    Join Date
    Oct 2006
    Posts
    1,439
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Cypher View Post

    Pfft. Mac. Just download linux and throw some money in the bin, its pretty much the same thing.
    Well it has quite it's differences, even though they both stem from a Unix background; It's why you see a WoW essentially "Emulated" on Linux and ran Native on Mac. Since Linux is growing in video Driver support and runs amazingly with OpenGL; I would like to see Blizzard blow some live into WoW by getting a 5-10 man team to screen the code and get a compiled version running native for Linux. I think it would be a sight to see.


  9. #9
    Cypher's Avatar Kynox's Sister's Pimp
    Reputation
    1358
    Join Date
    Apr 2006
    Posts
    5,368
    Thanks G/R
    0/6
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by suicidity View Post
    Well it has quite it's differences, even though they both stem from a Unix background; It's why you see a WoW essentially "Emulated" on Linux and ran Native on Mac. Since Linux is growing in video Driver support and runs amazingly with OpenGL; I would like to see Blizzard blow some live into WoW by getting a 5-10 man team to screen the code and get a compiled version running native for Linux. I think it would be a sight to see.

    Lol, it was a joke.

    Wine is far from 'emulated' though.
    WineHQ - Debunking Wine Myths

  10. #10
    suicidity's Avatar Contributor
    Reputation
    207
    Join Date
    Oct 2006
    Posts
    1,439
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Notice the Quotations " ", I know about Wine and how it does things; But really in General it would fall under the, not quite Emulation, but "Emulation" tree of things.

    I look at it that way because it is not really Windows. It may take calls and, if you will, redirect them to viable Unix calls and Converts DirectX calls to OpenGL calls etc; But that in a sense is almost emulation. Just because they are taking one thing and replacing it with something that can do, to our eyes, the same thing; But Emulation is the art of taking one thing and replacing it with another.

    I also caught the joke, I was just bored and figured I would stir the pot with some "seriousness"


  11. #11
    Cypher's Avatar Kynox's Sister's Pimp
    Reputation
    1358
    Join Date
    Apr 2006
    Posts
    5,368
    Thanks G/R
    0/6
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I know you threw "emulation" in quotations but even then its still a poor choice of words. I realize what you meant, but I was pointing out that even that may have been a little misguided. Its not emulation, nor is it "almost emulation", at least not in the sense of the word that is normally used in the software development context.

    Its beside the point though. My main point was to do with ripping on Macs, so lets get back to doing that.

  12. #12
    suicidity's Avatar Contributor
    Reputation
    207
    Join Date
    Oct 2006
    Posts
    1,439
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah, Macs suck; Screw their iBullshit.


  13. #13
    Cypher's Avatar Kynox's Sister's Pimp
    Reputation
    1358
    Join Date
    Apr 2006
    Posts
    5,368
    Thanks G/R
    0/6
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Macs suck! Woot! ^_^

  14. #14
    JuJuBoSc's Avatar Banned for scamming CoreCoins Purchaser
    Reputation
    1019
    Join Date
    May 2007
    Posts
    922
    Thanks G/R
    1/3
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Argh, imo Mac doesn't suck, it's not cheap for sure, but Mac is very good

  15. #15
    schlumpf's Avatar Retired Noggit Developer

    Reputation
    755
    Join Date
    Nov 2006
    Posts
    2,759
    Thanks G/R
    0/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Mac OSX == styled up Linux.

    Conclusion: Mac OSX is not bad.


    On Macs in terms of "The computers built by Apple": Bah. Gays.

Page 1 of 2 12 LastLast

Similar Threads

  1. add custom text to a Use: item
    By darkmagishin in forum WoW EMU Questions & Requests
    Replies: 3
    Last Post: 01-17-2009, 12:18 AM
  2. [Help] Coding Stickey notes and Text to speech
    By Anthonyrox8 in forum Programming
    Replies: 10
    Last Post: 10-17-2008, 02:22 PM
  3. [idea] Custom command for adding SQL codes?
    By Barlas the Death Knight in forum World of Warcraft Emulator Servers
    Replies: 6
    Last Post: 04-01-2008, 07:54 PM
  4. Custom NPC Text
    By pencilbox in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 12-19-2007, 02:46 AM
  5. WoW Color Hack WoW Color Hack (Use color-codes in text)
    By AlexM in forum World of Warcraft Bots and Programs
    Replies: 34
    Last Post: 08-24-2007, 12:42 PM
All times are GMT -5. The time now is 06:45 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search