Changeset 1185


Ignore:
Timestamp:
Apr 3, 2012, 1:25:07 AM (8 years ago)
Author:
sam
Message:

mrpigeon: first rendering test.

Location:
trunk/mrpigeon
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/mrpigeon/Makefile.am

    r1168 r1185  
    22noinst_PROGRAMS = mrpigeon
    33
    4 mrpigeon_SOURCES = mrpigeon.cpp
     4mrpigeon_SOURCES = mrpigeon.cpp mrpigeon.h
    55mrpigeon_CPPFLAGS = @LOL_CFLAGS@ @PIPI_CFLAGS@
    66mrpigeon_LDADD =
  • trunk/mrpigeon/mrpigeon.cpp

    r1168 r1185  
    1414
    1515#include "core.h"
     16#include "debug/fps.h"
    1617
    1718using namespace std;
    1819using namespace lol;
    1920
     21#include "mrpigeon.h"
     22
     23MrPigeon::MrPigeon()
     24{
     25    hudprogress = Tiler::Register("mrpigeon/gfx/HUD_timeline.png", ivec2(160,16), ivec2(0), vec2(3.0f));
     26    hudarrow = Tiler::Register("mrpigeon/gfx/HUD_timelineArrow.png", ivec2(16,16), ivec2(0), vec2(3.0f));
     27}
     28
     29void MrPigeon::TickGame(float deltams)
     30{
     31    WorldEntity::TickGame(deltams);
     32}
     33
     34void MrPigeon::TickDraw(float deltams)
     35{
     36    WorldEntity::TickDraw(deltams);
     37
     38    Scene::GetDefault()->AddTile(hudarrow, 0, ivec3(30, 8, 0), 0);
     39    Scene::GetDefault()->AddTile(hudprogress, 0, ivec3(0, 0, 0), 0);
     40}
     41
     42MrPigeon::~MrPigeon()
     43{
     44    Tiler::Deregister(hudprogress);
     45    Tiler::Deregister(hudarrow);
     46}
     47
    2048int main(int argc, char **argv)
    2149{
     50    Application app("MrPigeon", ivec2(512,384), 60.0f);
     51    new DebugFps(20, 20);
     52    new MrPigeon();
     53    app.ShowPointer(false);
     54    app.Run();
     55
    2256    return EXIT_SUCCESS;
    2357}
Note: See TracChangeset for help on using the changeset viewer.