You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
A Whole New World (clang-format edition)
I can show you the code Pretty, with proper whitespace Tell me, coder, now when did You last write readable code? I can open your eyes Make you see your bad indent Force you to respect the style The core devs agreed upon A whole new world A new fantastic code format A de facto standard With some sugar Enforced with clang-format A whole new world A dazzling style we all dreamed of And when we read it through It's crystal clear That now we're in a whole new world of code
This commit is contained in:
@@ -27,22 +27,21 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/*************************************************************************/
|
||||
#include "rasterizer.h"
|
||||
#include "print_string.h"
|
||||
#include "os/os.h"
|
||||
#include "print_string.h"
|
||||
|
||||
|
||||
Rasterizer* (*Rasterizer::_create_func)()=NULL;
|
||||
Rasterizer *(*Rasterizer::_create_func)() = NULL;
|
||||
|
||||
Rasterizer *Rasterizer::create() {
|
||||
|
||||
return _create_func();
|
||||
}
|
||||
|
||||
RasterizerStorage*RasterizerStorage::base_signleton=NULL;
|
||||
RasterizerStorage *RasterizerStorage::base_signleton = NULL;
|
||||
|
||||
RasterizerStorage::RasterizerStorage() {
|
||||
|
||||
base_signleton=this;
|
||||
base_signleton = this;
|
||||
}
|
||||
|
||||
#if 0
|
||||
@@ -78,7 +77,7 @@ RID Rasterizer::_create_shader(const FixedSpatialMaterialShaderKey& p_key) {
|
||||
String code;
|
||||
|
||||
static const char* _uv_str[4]={"UV","uv_xform","UV2","uv_sphere"};
|
||||
#define _TEXUVSTR(m_idx) String( _uv_str[(p_key.texcoord_mask>>(m_idx*2))&0x3] )
|
||||
#define _TEXUVSTR(m_idx) String(_uv_str[(p_key.texcoord_mask >> (m_idx * 2)) & 0x3])
|
||||
|
||||
|
||||
if (p_key.use_pointsize) {
|
||||
|
||||
Reference in New Issue
Block a user