Search found 198 matches

by RandomDever
Fri Dec 16, 2011 11:38 am
Forum: Programming Discussion
Topic: Err... What is this error?
Replies: 8
Views: 2306

Re: Err... What is this error?

Casting it to a float worked ismetteren. Thank you. But why doesn't it work with ints?
by RandomDever
Fri Dec 16, 2011 9:55 am
Forum: Programming Discussion
Topic: Err... What is this error?
Replies: 8
Views: 2306

Err... What is this error?

'pow' : ambiguous call to overloaded function Why. Just Why. No Honestly. Why is it doing this... But seriously. This is all that's standing between me and a brand new 'itoa' function. And before you ask, the reason for me making a custom function to do something C++ already has a function for? Bec...
by RandomDever
Fri Mar 25, 2011 9:40 am
Forum: Programming Discussion
Topic: OpenGL Texture Problem
Replies: 16
Views: 2259

Re: OpenGL Texture Problem

@Jesse: well I tried it with your code and it appears to not be working. when I render the texture with the initial surface nothing appears. When I render with the intermediary surface it's a white quad so I'm about to just quit. Because after working for 3 weeks on one core feature of my engine I s...
by RandomDever
Thu Mar 24, 2011 3:50 pm
Forum: Programming Discussion
Topic: OpenGL Texture Problem
Replies: 16
Views: 2259

Re: OpenGL Texture Problem

@Jesse: It looks to be about half-transparent and it is noticeable.
But as for the texture loading code I tried putting it in and it didn't work so can you show me the code for drawing your texture?
by RandomDever
Wed Mar 23, 2011 3:51 pm
Forum: Programming Discussion
Topic: OpenGL Texture Problem
Replies: 16
Views: 2259

Re: OpenGL Texture Problem

@ Jesse: Maybe that works for you but there is one line of code that's important:

Code: Select all

initial = TTF_RenderText_Blended( font, text, temporary );
That's the reason for all the special stuff.
by RandomDever
Wed Mar 23, 2011 1:39 pm
Forum: Programming Discussion
Topic: OpenGL Texture Problem
Replies: 16
Views: 2259

Re: OpenGL Texture Problem

@xiphirx: Now it disappears with blending and is a black box without blending.
@JesseGuarascia: Tried it and it didn't work and what copying are you talking about?
by RandomDever
Wed Mar 23, 2011 10:28 am
Forum: Programming Discussion
Topic: OpenGL Texture Problem
Replies: 16
Views: 2259

Re: OpenGL Texture Problem

@JesseGuarascia: I tried changing it to 3 and 4 and both just replaced the texture turn white but that's probably just the quad and the texture was gone.
@xiphirx: No. If I did that then the text would be in an ugly black box.
by RandomDever
Tue Mar 22, 2011 5:06 pm
Forum: Programming Discussion
Topic: OpenGL Texture Problem
Replies: 16
Views: 2259

OpenGL Texture Problem

SDL_Surface *initial; SDL_Surface *intermediary; SDL_Surface *temp; GLtexture texture; SDL_Color temporary = { blue, green, red }; initial = TTF_RenderText_Blended( font, text, temporary ); texture.w = NextPowerof2( initial->w ); texture.h = NextPowerof2( initial->h ); intermediary = SDL_CreateRGBS...
by RandomDever
Thu Mar 17, 2011 10:25 pm
Forum: Programming Discussion
Topic: LNK2019: unresolved external symbol __imp___CrtDbgReportW
Replies: 8
Views: 2193

Re: LNK2019: unresolved external symbol __imp___CrtDbgReportW

...You can't just show us a line of code that is syntactically correct then show us an error. Obviously that's not enough information. =/ I apologize. Here's the header: class Input { public: void Init(); int Poll(); bool Type( Uint8 type ); SDL_Event *Get(); Uint8 GetKey( int key, int check = INPU...
by RandomDever
Thu Mar 17, 2011 7:48 pm
Forum: Programming Discussion
Topic: LNK2019: unresolved external symbol __imp___CrtDbgReportW
Replies: 8
Views: 2193

Re: LNK2019: unresolved external symbol __imp___CrtDbgReportW

@Boogy: Thanks it worked.
Now I'm having problems with this:

Code: Select all

keystates = SDL_GetKeyState( NULL );
It keeps giving me an error:

Code: Select all

Access violation reading location 0xcccccccc
by RandomDever
Thu Mar 17, 2011 5:23 am
Forum: Programming Discussion
Topic: LNK2019: unresolved external symbol __imp___CrtDbgReportW
Replies: 8
Views: 2193

LNK2019: unresolved external symbol __imp___CrtDbgReportW

Why is it giving me this error?

Code: Select all

LNK2019: unresolved external symbol __imp___CrtDbgReportW
by RandomDever
Tue Dec 14, 2010 8:47 pm
Forum: Programming Discussion
Topic: OpenGL Texture to SDL_Surface
Replies: 24
Views: 2548

Re: OpenGL Texture to SDL_Surface

Here's my draw function: glEnable( GL_TEXTURE_2D ); glEnable( GL_BLEND ); glBlendFunc( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA ); glTranslatef( x + ( w / 2 ), y + ( h / 2 ), 0 ); glColor4f( 1, 1, 1, alpha ); glScalef( scale, scale, scale ); glRotatef( rotation, 0, 0, 1.0 ); glBindTexture( GL_TEXTURE_2D...
by RandomDever
Sun Dec 12, 2010 7:27 am
Forum: Programming Discussion
Topic: OpenGL Texture to SDL_Surface
Replies: 24
Views: 2548

Re: OpenGL Texture to SDL_Surface

I still need someone to help me fix the texture ID problem because it's a HUGE speed bump.
by RandomDever
Sat Dec 11, 2010 9:20 am
Forum: General Gaming
Topic: Goodbye controllers? :'(
Replies: 19
Views: 3933

Re: Goodbye controllers? :'(

MrDeathNote wrote:NO FUCKIN WAY, touch my controllers and die......
Yes.

If they try to replace controller with games I won't buy their game because while things like the Kinnect are cool, they should only be an add-on.
Not required to play any games.