Example #1
0
 /// <summary>
 /// インデックスを設定します。
 /// </summary>
 /// <param name="index"></param>
 internal override void SetIndices(IndexBufferBase index)
 {
     if (currentIndex != index)
     {
         device.Indices = ((Vertex.DX9.IndexBuffer)index)._IndexBuffer;
         currentIndex   = index;
     }
 }
Example #2
0
        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" }
            };
        }
Example #3
0
 /// <summary>
 /// インデックスを設定します。
 /// </summary>
 /// <param name="index"></param>
 internal abstract void SetIndices(IndexBufferBase index);
Example #4
0
 internal override void SetIndices(IndexBufferBase index)
 {
     throw new NotImplementedException();
 }