move log.h include in each file instead of pch, link libcurl and compile for mac
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include "pch.h"
|
||||
#include "log.h"
|
||||
#include "app.h"
|
||||
|
||||
using namespace ui;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#include "pch.h"
|
||||
#include "log.h"
|
||||
#include "asset.h"
|
||||
|
||||
#ifdef __ANDROID__
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#include "pch.h"
|
||||
#include "log.h"
|
||||
#include "bezier.h"
|
||||
|
||||
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
#include "pch.h"
|
||||
#include "log.h"
|
||||
#include "brush.h"
|
||||
|
||||
|
||||
|
||||
void ui::BrushMesh::draw(const std::vector<StrokeSample>& samples, const glm::mat4& proj)
|
||||
{
|
||||
std::vector<instance_t> attributes;
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
#include "pch.h"
|
||||
#include "log.h"
|
||||
#include "canvas.h"
|
||||
|
||||
|
||||
|
||||
void ui::Canvas::clear()
|
||||
{
|
||||
m_fb.bindFramebuffer();
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#include "pch.h"
|
||||
#include "log.h"
|
||||
#include "font.h"
|
||||
#include "shader.h"
|
||||
#include "asset.h"
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#include "pch.h"
|
||||
#include "log.h"
|
||||
#include "image.h"
|
||||
#include "asset.h"
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#include "pch.h"
|
||||
#include "log.h"
|
||||
#include "layout.h"
|
||||
#include "util.h"
|
||||
#include "asset.h"
|
||||
|
||||
@@ -1544,8 +1544,9 @@ public:
|
||||
|
||||
if (dp != NULL)
|
||||
{
|
||||
while (ep = readdir (dp))
|
||||
names.push_back(ep->d_name);
|
||||
while ((ep = readdir(dp)))
|
||||
if (ep->d_type != DT_DIR)
|
||||
names.push_back(ep->d_name);
|
||||
closedir(dp);
|
||||
}
|
||||
else
|
||||
|
||||
@@ -67,7 +67,7 @@ void LogRemote::log(const wchar_t* format, ...)
|
||||
static wchar_t buffer[4096];
|
||||
va_list arglist;
|
||||
va_start(arglist, format);
|
||||
int n = _vsnwprintf(buffer, sizeof(buffer)/sizeof(wchar_t), format, arglist);
|
||||
int n = vswprintf(buffer, sizeof(buffer)/sizeof(wchar_t), format, arglist);
|
||||
va_end(arglist);
|
||||
|
||||
std::wstring string_to_convert(buffer, n);
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#include "pch.h"
|
||||
#include "log.h"
|
||||
#include "shader.h"
|
||||
#include "shape.h"
|
||||
#include "texture.h"
|
||||
@@ -264,7 +265,7 @@ static CVReturn MyDisplayLinkCallback(CVDisplayLinkRef displayLink, const CVTime
|
||||
{
|
||||
App::I.initLog();
|
||||
App::I.create();
|
||||
NSRect r = NSMakeRect(0, 0, app.width, app.height);
|
||||
NSRect r = NSMakeRect(0, 0, App::I.width, App::I.height);
|
||||
|
||||
view = [[View alloc] initWithFrame:r];
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
|
||||
#ifdef __APPLE__
|
||||
#include <OpenGL/gl3.h>
|
||||
#include <OpenGL/gl3ext.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
#include <dirent.h>
|
||||
@@ -73,5 +74,3 @@
|
||||
#include <stb/stb_truetype.h>
|
||||
#include <stb/stb_image.h>
|
||||
#include <curl/curl.h>
|
||||
|
||||
#include "log.h"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#include "pch.h"
|
||||
#include "log.h"
|
||||
#include "rtt.h"
|
||||
|
||||
|
||||
RTT::RTT()
|
||||
{
|
||||
fboID = 0;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#include "pch.h"
|
||||
#include "log.h"
|
||||
#include "shader.h"
|
||||
|
||||
using namespace ui;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#include "pch.h"
|
||||
#include "log.h"
|
||||
#include "shape.h"
|
||||
|
||||
using namespace ui;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#include "pch.h"
|
||||
#include "log.h"
|
||||
#include "texture.h"
|
||||
#include "util.h"
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#include "pch.h"
|
||||
#include "log.h"
|
||||
#include "util.h"
|
||||
|
||||
bool point_in_rect(const glm::vec2& p, const glm::vec4& r)
|
||||
|
||||
Reference in New Issue
Block a user