コード例 #1
0
ファイル: texture.hpp プロジェクト: CarterTsai/three_cpp
  Texture::Ptr clone( ) const {

    auto texture = create( TextureDesc( image[0] ) );

    texture->image = image;

    texture->mapping = mapping;

    texture->wrapS = wrapS;
    texture->wrapT = wrapT;

    texture->magFilter = magFilter;
    texture->minFilter = minFilter;

    texture->format = format;
    texture->dataType = dataType;

    texture->anisotropy = anisotropy;

    texture->offset.copy( offset );
    texture->repeat.copy( repeat );

    texture->generateMipmaps = generateMipmaps;
    texture->premultiplyAlpha = premultiplyAlpha;
    texture->flipY = flipY;

    return texture;

  }
コード例 #2
0
void	ColorRenderBuffer::Resize(unsigned int width, unsigned int height)
{

	Create(width, height, m_format, m_sample_desc, TextureDesc().CPUAccessFlags, TextureDesc().MiscFlags);
}