Ignore:
Timestamp:
Feb 18, 2011, 1:09:28 AM (9 years ago)
Author:
sam
Message:

Get rid of float3, float4, int3 etc. in favour of GLSL types.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emitter.cpp

    r298 r664  
    3030private:
    3131    int tiler;
    32     float3 gravity;
     32    vec3 gravity;
    3333    int particles[MAX_PARTICLES];
    34     float3 positions[MAX_PARTICLES];
    35     float3 velocities[MAX_PARTICLES];
     34    vec3 positions[MAX_PARTICLES];
     35    vec3 velocities[MAX_PARTICLES];
    3636    int nparticles;
    3737};
     
    4141 */
    4242
    43 Emitter::Emitter(int tiler, float3 gravity)
     43Emitter::Emitter(int tiler, vec3 gravity)
    4444  : data(new EmitterData())
    4545{
     
    7878}
    7979
    80 void Emitter::AddParticle(int id, float3 pos, float3 vel)
     80void Emitter::AddParticle(int id, vec3 pos, vec3 vel)
    8181{
    8282    if (data->nparticles >= EmitterData::MAX_PARTICLES)
Note: See TracChangeset for help on using the changeset viewer.