Changeset 1224


Ignore:
Timestamp:
Apr 13, 2012, 6:34:22 PM (8 years ago)
Author:
sam
Message:

gpu: start working on a template-based vertex buffer class.

Location:
trunk
Files:
2 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/Makefile.am

    r1219 r1224  
    3131    gpu/shader.cpp gpu/shader.h \
    3232    gpu/vbo.cpp gpu/vbo.h \
     33    gpu/vertexbuffer.cpp gpu/vertexbuffer.h \
    3334    \
    3435    image/image.cpp image/image.h image/image-private.h \
  • trunk/src/core.h

    r1180 r1224  
    100100#include "gpu/shader.h"
    101101#include "gpu/vbo.h"
     102#include "gpu/vertexbuffer.h"
    102103#include "image/image.h"
    103104#include "application/application.h"
  • trunk/test/tutorial/tut01.cpp

    r1214 r1224  
    6262        if (!m_ready)
    6363        {
     64            VertexBuffer vb(VertexDeclaration<vec2, float, ivec3>(0, 0, 1));
     65
     66
     67
     68
     69
     70
     71
     72
     73
     74
     75
     76
     77
     78
     79
    6480            m_shader = Shader::Create(
    6581#if !defined __CELLOS_LV2__ && !defined _XBOX && !defined USE_D3D9
  • trunk/win32/lolcore.vcxproj

    r1210 r1224  
    8888    <ClCompile Include="..\src\gpu\shader.cpp" />
    8989    <ClCompile Include="..\src\gpu\vbo.cpp" />
     90    <ClCompile Include="..\src\gpu\vertexbuffer.cpp" />
    9091    <ClCompile Include="..\src\gradient.cpp" />
    9192    <ClCompile Include="..\src\hash.cpp" />
     
    141142    <ClInclude Include="..\src\gpu\shader.h" />
    142143    <ClInclude Include="..\src\gpu\vbo.h" />
     144    <ClInclude Include="..\src\gpu\vertexbuffer.h" />
    143145    <ClInclude Include="..\src\gradient.h" />
    144146    <ClInclude Include="..\src\hash.h" />
  • trunk/win32/lolcore.vcxproj.filters

    r1180 r1224  
    167167      <Filter>src\gpu</Filter>
    168168    </ClCompile>
     169    <ClCompile Include="..\src\gpu\vertexbuffer.cpp">
     170      <Filter>src\gpu</Filter>
     171    </ClCompile>
    169172    <ClCompile Include="..\src\application\application.cpp">
    170173      <Filter>src\application</Filter>
     
    340343      <Filter>src\gpu</Filter>
    341344    </ClInclude>
     345    <ClInclude Include="..\src\gpu\vertexbuffer.h">
     346      <Filter>src\gpu</Filter>
     347    </ClInclude>
    342348    <ClInclude Include="..\src\thread\thread.h">
    343349      <Filter>src\thread</Filter>
Note: See TracChangeset for help on using the changeset viewer.