Changeset 1245


Ignore:
Timestamp:
Apr 21, 2012, 10:18:18 AM (9 years ago)
Author:
sam
Message:

orbital: start implementing the mesh builder features found in the original.

Location:
trunk
Files:
2 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/orbital/Makefile.am

    r1235 r1245  
    33
    44orbital_SOURCES = \
    5     orbital.cpp orbital.h
     5    orbital.cpp orbital.h mesh.h
    66orbital_CPPFLAGS = @LOL_CFLAGS@ @PIPI_CFLAGS@
    77orbital_LDADD =
  • trunk/orbital/orbital.cpp

    r1235 r1245  
    2424
    2525#include "orbital.h"
     26#include "mesh.h"
    2627
    2728Orbital::Orbital()
    2829{
    29     ;
     30    m.AppendBox(vec3(1.0, 1.0, 1.0));
     31    m.Flush();
    3032}
    3133
     
    4749int main(int argc, char **argv)
    4850{
    49     Application app("Orbital", ivec2(1280,720), 60.0f);
     51    Application app("Orbital", ivec2(1024,576), 60.0f);
    5052
    5153#if defined _WIN32 && !defined _XBOX
  • trunk/orbital/orbital.h

    r1235 r1245  
    11#if !defined __ORBITAL_H__
    22#define __ORBITAL_H__
     3
     4#include "mesh.h"
    35
    46class Orbital : public WorldEntity
     
    1315    virtual void TickGame(float deltams);
    1416    virtual void TickDraw(float deltams);
     17
     18private:
     19    Mesh m;
    1520};
    1621
  • trunk/win32/orbital.vcxproj

    r1235 r1245  
    2828  </ItemGroup>
    2929  <ItemGroup>
     30    <ClInclude Include="..\orbital\mesh.h" />
    3031    <ClInclude Include="..\orbital\orbital.h" />
    3132  </ItemGroup>
  • trunk/win32/orbital.vcxproj.filters

    r1235 r1245  
    11<?xml version="1.0" encoding="utf-8"?>
    22<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
     3  <ItemGroup>
     4    <ClInclude Include="..\orbital\mesh.h" />
     5  </ItemGroup>
    36  <ItemGroup>
    47    <ClInclude Include="..\orbital\orbital.h" />
Note: See TracChangeset for help on using the changeset viewer.