Project

General

Profile

Download (2.37 KB) Statistics
| Branch: | Revision:

distorted-objectlib / src / main / java / org / distorted / objectlib / helpers / ObjectVertexEffects.java @ 4f629c09

1
///////////////////////////////////////////////////////////////////////////////////////////////////
2
// Copyright 2021 Leszek Koltunski                                                               //
3
//                                                                                               //
4
// This file is part of Magic Cube.                                                              //
5
//                                                                                               //
6
// Magic Cube is proprietary software licensed under an EULA which you should have received      //
7
// along with the code. If not, check https://distorted.org/magic/License-Magic-Cube.html        //
8
///////////////////////////////////////////////////////////////////////////////////////////////////
9

    
10
package org.distorted.objectlib.helpers;
11

    
12
///////////////////////////////////////////////////////////////////////////////////////////////////
13

    
14
public class ObjectVertexEffects
15
  {
16
  private final String[] mEffectName;
17
  private final float[][] mEffectVariable;
18
  private final float[][] mEffectCenter;
19
  private final float[][] mEffectRegion;
20
  private final boolean[] mUseIfMeshFast;
21

    
22
///////////////////////////////////////////////////////////////////////////////////////////////////
23

    
24
  public ObjectVertexEffects(String[] names, float[][] variables, float[][] centers, float[][] regions, boolean[] use)
25
    {
26
    mEffectName     = names;
27
    mEffectVariable = variables;
28
    mEffectCenter   = centers;
29
    mEffectRegion   = regions;
30
    mUseIfMeshFast  = use;
31
    }
32

    
33
///////////////////////////////////////////////////////////////////////////////////////////////////
34

    
35
  public String[] getNames()
36
    {
37
    return mEffectName;
38
    }
39

    
40
///////////////////////////////////////////////////////////////////////////////////////////////////
41

    
42
  public float[][] getVariables()
43
    {
44
    return mEffectVariable;
45
    }
46

    
47
///////////////////////////////////////////////////////////////////////////////////////////////////
48

    
49
  public float[][] getCenters()
50
    {
51
    return mEffectCenter;
52
    }
53

    
54
///////////////////////////////////////////////////////////////////////////////////////////////////
55

    
56
  public float[][] getRegions()
57
    {
58
    return mEffectRegion;
59
    }
60

    
61
///////////////////////////////////////////////////////////////////////////////////////////////////
62

    
63
  public boolean[] getUses()
64
    {
65
    return mUseIfMeshFast;
66
    }
67
  }
(12-12/14)