Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


Endurion

Member Since 21 Feb 2002
Online Last Active Yesterday, 11:52 PM

Posts I've Made

In Topic: HTML/CSS for 3D game GUI

05 April 2015 - 05:46 PM

Seriously, the people coming up with CSS should be shot into the sun. It's such a broken piece of crap that it should be completely replaced.
Unfortunately it's now pretty entrenched and we are going to suffer from it for years to come.

Avoid it, esp. in games. Do you want to show real web pages in your game or simply want to place some buttons?

In Topic: Issues with IDE Linker? Why is this happening, and how do i fix it?

05 April 2015 - 05:37 PM

Your BaseItem.h and Inventory.h have the same include guards. So Inventory.h including BaseItem.h will actually never include the content of BaseItem.h.

Just rename the include guard to BASEITEM_H.

In Topic: C\C++ - win32: how create regions by images?

04 April 2015 - 05:47 PM

This is a interesting read on WS_EX_TRANSPARENT. It might not do what you think it does:

http://blogs.msdn.com/b/oldnewthing/archive/2012/12/17/10378525.aspx

In Topic: C#: How to best track in-game "states" of things (i.e. using bitwise...

29 March 2015 - 07:40 PM

You could for example use an enum, set the values to the various bits and annotate it with [Flags].
 
It's a C++-ism, and not that common, but it nevertheless works:
 
 
[Flags]
enum RenderType
{
  None = 0x0,
  DataUri = 0x1,
  GZip = 0x2,
  ContentPage = 0x4,
  ViewPage = 0x8,
  HomePage = 0x10 // Next two values could be 0x20, 0x40
}
You can use it like a normal type, but will have to cast to uint for storing/restoring.

RenderType renderFlags = RenderType.GZip | RenderType.HomePage;

In Topic: C\C++ - win32: how redraw a transparent control with parent WS_CLIPCHILD...

28 March 2015 - 12:51 AM

Drawing controls transparent is always a problem, and basically can't be gotten to work without major hackarounds in both child and parent.

 

What exactly are you trying to achieve?

 

Your thumbnail is way too small to recognize what you mean.

 

Are you trying to display game objects with child windows? If yes, don't even try, that'll only end in tears. If you do want to use Win32 API only look into CreateDIBSection etc.


PARTNERS