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

📄 splat.cpp

📁 The goal of this project is to explore the idea of point-based radiosity, which is a shooting radio
💻 CPP
字号:
/*+-------------------------------------------------------------------
  Ben Landon
  CSCI E-235
  Final Project

  Splat.cpp - Simple implementation of the Splat class.  See
  the file Splat.hpp for implementation notes. 

*/
#include "Splat.hpp"


Splat::Splat (void)
    : color(0.0f, 0.0f, 0.0f), point(0.0f, 0.0f, 0.0f)
{
}


/*+-------------------------------------------------------------------
  Splat copy constructor 

  I know that this implementation is just a field by field 
  copy, which is what the compiler would have produced, 
  but I like to control the implementation of the copy
  constructor and the assignment operator.

*/
Splat::Splat (const Splat& splat)
{
    color = splat.color;
    point = splat.point;
}


/*+-------------------------------------------------------------------
  Splat assignment operator

*/
const Splat& Splat::operator= (const Splat& splat)
{
    color = splat.color;
    point = splat.point;
    return *this;
}

float Splat::max_splat_value = 0.0f;

⌨️ 快捷键说明

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