We can do something now =P

Published January 20, 2006
Advertisement
Hi my friends...

After this late in post here...

I bring some news...

The PLabel class supports the Outline Fonts, Bitmap Fonts and Texture mapped fonts..

the PPanel class is almost done, it's working now, except by some details that I'll implement tomorrow, like caption align, borders visible, etc...

the PGraphicObjectCollection is dead...it just brought me problems...

PPanel : PInputEventReceiver

private:  PLabel* FCaption;  SColor* FBackgroundColor;  SColor* FBorderColor;  std::string FTextureFileName;      unsigned int FTexture;  unsigned int FDisplayListRectWireFrame;  unsigned int FDisplayListRect;  unsigned int FDisplayListRectTexture;		  int FBorderWidth;  int FRectType;  bool FFilled;public:  PPanel(SRect* ABounds, int ARectType, IVideoDriver* AVideoDriver);  ~PPanel(void);  PLabel* GetCaption(void);  void SetCaption(PLabel* AValue);		  SColor* GetBackgroundColor(void);  void SetBackgroundColor(SColor* AValue);      SColor* GetBorderColor(void);  void SetBorderColor(SColor* AValue);  std::string GetTextureFileName(void);  void SetTextureFileName(std::string AValue);      int GetBorderWidth(void);  void SetBorderWidth(int AValue);  bool GetFilled(void);  void SetFilled(bool AValue);  void PrepareToDraw(void);  void Draw(void);


The IVideoDriver have some new methods too

virtual AUX_RGBImageRec* LoadBMPRec(std::string AFileName) = 0;virtual void SetBlend(bool AValue) = 0;virtual void SetTexture(bool AValue) = 0;virtual unsigned int GenerateDisplayList(int AListSize) = 0;virtual void CallDisplayList(unsigned int ADisplayList) = 0;virtual void DestroyDisplayList(unsigned int ADisplayList, int ASize) = 0;    virtual void LoadTexture(std::string AFileName, unsigned int &ATextureBuffer, int ATextureType) = 0;virtual void BindTexture(unsigned int ATextureBuffer) = 0;		virtual void DrawText(std::string AText, float ASize, SColor* AColor, SCoord* ACoord, unsigned int ADisplayList, int AFontType) = 0;		virtual unsigned int GenerateDisplayListRectWireFrame(SRect* ABounds, SColor* ABorderColor, int ABorderWidth) = 0;virtual unsigned int GenerateDisplayListRect(SRect* ABounds, SColor* ABackgroundColor) = 0;virtual unsigned int GenerateDisplayListRectTexture(SRect* ABounds, SColor* AColor) = 0;


I'm using display list for everything, if someone has any suggestion in how I can approach the performance...tell me...

I have made a little demo with two panels and one running label to show the use of layers and what we have until now:

Predator Engine Demo

well...I hope you like the system...

I think that our next step is make some buttons..right?

see ya
Previous Entry News...and PLabel!!!
Next Entry Let's play... = )
0 likes 0 comments

Comments

Nobody has left a comment. You can be the first!
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Profile
Author
Advertisement

Latest Entries

Another Demo

1037 views

Link resolved....

1088 views

Update....

1054 views

Let's play... = )

1016 views

A little doubt

856 views

PLayer

901 views
Advertisement