37 lines
874 B
Java
37 lines
874 B
Java
/*
|
|
* Created on Jul 11, 2011
|
|
*/
|
|
|
|
package org.lwjgl.util.mapped;
|
|
|
|
public class MappedSet4
|
|
{
|
|
private final MappedObject a, b, c, d;
|
|
|
|
MappedSet4(MappedObject a, MappedObject b, MappedObject c, MappedObject d)
|
|
{
|
|
this.a = a;
|
|
this.b = b;
|
|
this.c = c;
|
|
this.d = d;
|
|
}
|
|
|
|
public int view;
|
|
|
|
void view(int view)
|
|
{
|
|
this.a.viewAddress = this.a.baseAddress + this.a.stride * view;
|
|
this.b.viewAddress = this.b.baseAddress + this.b.stride * view;
|
|
this.c.viewAddress = this.c.baseAddress + this.c.stride * view;
|
|
this.d.viewAddress = this.d.baseAddress + this.d.stride * view;
|
|
}
|
|
|
|
public void next()
|
|
{
|
|
this.a.viewAddress += this.a.stride;
|
|
this.b.viewAddress += this.b.stride;
|
|
this.c.viewAddress += this.c.stride;
|
|
this.d.viewAddress += this.d.stride;
|
|
}
|
|
}
|