forked from ocornut/imgui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master'
----- - d3dx9 -> d3d9 にデグレードして d3dx を使わない生々しい実装に切り替えられた。 - 最小化状態での描画回避による高効率化が図られた。 - SDLウィンドウコンテキストを外部から提供される形にしてこのソースからは除外した。 - コーディングルールを`type *value` から `type* value` に変更した。 - フレームバッファーのサイズ計算で零除算が発生する可能性があったので排除した。 - `ImTextureID` についてインソースコメントドキュメントに追加。 - ImGui のウィンドウコンテキストを使わずに `ImDrawList API` で ImGui を使う方法をインソースコメントドキュメントに追記。 - コーディングルールを`type *value` から `type* value` に変更した。 - インソースコメントドキュメントを若干わかりやすく修正した。 - 2016-03-21 (1.48の途中) から 2016-05-12 (1.49の途中) までにあった APIの 破壊的変更についてインソースコメントドキュメントに追記。 - `GetWindowFont` -> `GetFont` 但し、旧APIはリダイレクトを定義しているが廃止予定 - `GetWindowFontSize` -> `GetFontSize` 但し、旧APIはリダイレクトを定義しているが廃止予定 - ImGuiCol_TooltipBg -> ImGuiCol_PopupBg ポップアップとメニューはこのAPIを事前に必要とするようになった ocornut#337 - style.WindowFillAlphaDefault 削除 style.Colors[ImGuiCol_WindowBg] を使えばいい。 ocornut#337 - `ImDrawList::PushClipRect(ImVec4 rect)` -> `ImDraw::PushClipRect(Imvec2 min,ImVec2 max,bool intersect_with_current_clip_rect=false)` - `CollapsingHeader(const char* label, const char* str_id = NULL, bool display_frame = true, bool default_open = false)` 廃止 -> `default_open` が `true` の `CollapsingHeader(label, ImGuiTreeNodeFlags_DefaultOpen)` を使えばいい。 - `SetNextTreeNodeOpened()` -> `SetNextTreeNodeOpen()` 但し旧APIからのリダイレクトは定義していない。 - `GetInternalState()`, `GetInternalStateSize()`, `SetInternalState()` は意味がわからないから `CreateContext()`, `DestroyContext()`, `GetCurrentContext()`, `SetCurrentContext()` にした。 - タイトルバーがウィンドウ背景に重ねて描画されないように変更した。 - MSVC++ で `snprintf` の代わりに `_snprintf` をCPPで使ってたのをやめた。 - GCC で `-Wformat` `-Wdouble-promotion` `-Wconversion` で警告を出すようにした。 - OSX でキーバインディングのデフォルトをそれっい感じになるようにした。 - `IM_INT_MIN` `IM_INT_MAX` CPP を廃止して IM_F32_TO_INT8_UNBOUND` と `IM_F32_TO_INT8_SAT` CPP にかえた。 - `void ImStrncpy(char* dst, const char* src, int count)` API を追加した。 - `bool ImGuiStorage::GetBool(ImU32 key, bool default_val) const` API を追加した。 - `bool* ImGuiStorage::GetBoolRef(ImGuiID key, bool default_val)` API を追加した。 - `void ImGuiStorage::SetBool(ImU32 key, bool val)` API を追加した。 - `ImGuiListClipper` 系のAPI を追加した。 - 実装詳細の CamelCase コーディングルールの徹底を図った。 - 実装詳細の不要なブロックスコープを廃止しコーディングルールの徹底を図った。 - 実装詳細のリファクタリングにより動作効率の向上と論理構造の見直しによる可読性の向上などを図った。 - `unsigned long long int` -> `int64_t` など処理系の実装依存による想定外の型挙動が起こらないよう修正した。 - `void ImGui::RenderBullet(ImVec2 pos)` API 追加。 - `bool ImGui::IsItemClicked(int mouse_button)` API 追加。 - `static void ApplySizeFullWithConstraint(ImGuiWindow* window, ImVec2 new_size)` API 追加。 - `void ImGui::SetNextWindowSizeConstraints(const ImVec2& size_min, const ImVec2& size_max, ImGuiSizeConstraintCallback custom_callback, void* custom_callback_user_data)` API 追加。 - `void ImGui::Bullet()` API 追加。 - `void ImGui::TreePushRawID(ImGuiID id)` API 追加。 -----
- Loading branch information
Showing
79 changed files
with
6,850 additions
and
2,934 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// ImGui iOS+OpenGL+Synergy binding | ||
// In this binding, ImTextureID is used to store an OpenGL 'GLuint' texture identifier. Read the FAQ about ImTextureID in imgui.cpp. | ||
// Providing a standalone iOS application with Synergy integration makes this sample more verbose than others. It also hasn't been tested as much. | ||
// Refer to other examples to get an easier understanding of how to integrate ImGui into your existing application. | ||
|
||
// by Joel Davis (joeld42@gmail.com) | ||
|
||
#pragma once | ||
|
||
#include <Foundation/Foundation.h> | ||
#include <UIKit/UIKit.h> | ||
|
||
@interface ImGuiHelper : NSObject | ||
|
||
- (id) initWithView: (UIView *)view; | ||
|
||
- (void)connectServer: (NSString*)serverName; | ||
|
||
- (void)render; | ||
- (void)newFrame; | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// | ||
// AppDelegate.h | ||
// imguiex-osx | ||
// | ||
// Created by James Chen on 4/5/16. | ||
// Copyright © 2016 Joel Davis. All rights reserved. | ||
// | ||
|
||
#import <Cocoa/Cocoa.h> | ||
|
||
@interface AppDelegate : NSObject <NSApplicationDelegate> | ||
|
||
|
||
@end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// | ||
// AppDelegate.m | ||
// imguiex-osx | ||
// | ||
// Created by James Chen on 4/5/16. | ||
// Copyright © 2016 Joel Davis. All rights reserved. | ||
// | ||
|
||
#import "AppDelegate.h" | ||
|
||
@interface AppDelegate () | ||
|
||
@property (weak) IBOutlet NSWindow *window; | ||
@end | ||
|
||
@implementation AppDelegate | ||
|
||
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification { | ||
// Insert code here to initialize your application | ||
} | ||
|
||
- (void)applicationWillTerminate:(NSNotification *)aNotification { | ||
// Insert code here to tear down your application | ||
} | ||
|
||
@end |
Oops, something went wrong.