⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mgcsoftimage.h

📁 3D Game Engine Design Source Code非常棒
💻 H
字号:
// Magic Software, Inc.
// http://www.magic-software.com
// Copyright (c) 2000, All Rights Reserved
//
// Source code from Magic Software is supplied under the terms of a license
// agreement and may not be copied or disclosed except in accordance with the
// terms of that agreement.  The various license agreements may be found at
// the Magic Software web site.  This file is subject to the license
//
// RESTRICTED USE SOURCE CODE
// http://www.magic-software.com/License/restricted.pdf

#ifndef MGCSOFTIMAGE_H
#define MGCSOFTIMAGE_H

#include "MgcSoftColor.h"


class MgcSoftImage
{
public:
    MgcSoftImage ();

    void Set (int iXSize, int iYSize, MgcSoftColor* akColor, bool bXClamp,
        bool bYClamp);

    int GetXSize () const;
    int GetYSize () const;
    const MgcSoftColor* GetColors () const;

    int GetX (MgcReal fX) const;
    int GetY (MgcReal fY) const;

    MgcSoftColor GetColor (int iX, int iY);
    MgcSoftColor GetColor (MgcReal fX, MgcReal fY);

protected:
    int m_iXSize, m_iYSize;
    int m_iXSizeM1, m_iYSizeM1;
    int m_iLogXSize, m_iLogYSize;
    MgcReal m_fXSizeM1, m_fYSizeM1;
    bool m_bXClamp, m_bYClamp;
    MgcSoftColor* m_akColor;
};

#include "MgcSoftImage.inl"

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -