/// <summary> /// インデックスを設定します。 /// </summary> /// <param name="index"></param> internal override void SetIndices(IndexBufferBase index) { if (currentIndex != index) { device.Indices = ((Vertex.DX9.IndexBuffer)index)._IndexBuffer; currentIndex = index; } }
public SpriteBatch(PPDDevice device) { this.device = device; effect = EffectFactoryManager.Factory.FromMemory(device, device.GetShaderBytecode("BasicEffect")); textureHandle = effect.GetParameter("Texture"); overlayColorHandle = effect.GetParameter("OverlayColor"); projectionHandle = effect.GetParameter("Projection"); effect.SetValue(projectionHandle, device.Projection); vertices = Vertex.VertexBufferFactoryManager.Factory.Create(device, _vertices.Length * ColoredTexturedVertex.Size); indices = Vertex.IndexBufferFactoryManager.Factory.Create(device, _indices.Length * sizeof(int)); spriteInfos = new List <SpriteInfo>(); scissorRectStates = new List <ScissorRectState>(); techniques = new Dictionary <bool, string> { { false, "BasicEffectPADisabled" }, { true, "BasicEffectPAEnabled" } }; }
/// <summary> /// インデックスを設定します。 /// </summary> /// <param name="index"></param> internal abstract void SetIndices(IndexBufferBase index);
internal override void SetIndices(IndexBufferBase index) { throw new NotImplementedException(); }