-
CPP 053 – Static Members
Static değişkenler ve fonksiyonlar nesnelerden bağımsız olarak sınıfa aittir. Bunlara erişmek ve kullanmak için herhangi bir nesneye ihtiyacımız yoktur. Nesnelerden bağımsız olduğu için tüm nesneler aynı değişkene/fonksiyona erişebilir.
-
CPP 052 – Const Objects
Initialize edildikten sonra bir daha değer ataması yapılamayan sabit değişkenler oluşturmak için kullanıyoruz: Yani kısacası ömrü boyunca aynı değeri taşır. Herhangi bir sınıfa ait constant bir nesne oluşturabiliriz: Bu kodda Player sınıfına ait constant bir nesne oluşturduk. 24. satırdaki set_name() metoduna yaptığımız çağrı bize hata verecektir. Çünkü sabit bir nesne adı üstüne değiştirilemez. Peki neden…
-
CPP 051 – Copy & Move && Constructors
Nesnenin kopyalandığı durumlarda copy constructor çağrılıyor. Move constructor ise kopyalama işlemi yerine var olan nesneyi yeni nesneye atıyor. Yani bir nevi bir yer değiştirme durumu söz konusu oluyor. Copy Constructor Hangi durumlarda çağrılabilir: https://www.geeksforgeeks.org/when-is-a-copy-constructor-called-in-cpp Kısacası fonksiyonun pass by value ile parametre alması, fonksiyonun değer döndürmesi esnasında, var olan nesneden yeni bir nesne oluşturma durumunda bu…
-
CPP 050 – Constructors
Daha önce yapıcılar ve yıkıcılar dersinde zaten bahsetmiştik. Şimdi detaylara bakalım. Contstructor Nedir? Default Constructor A default constructor is a constructor which can be called with no arguments. https://en.cppreference.com/w/cpp/language/default_constructor Overloading Constructors Tıpkı fonksiyonları overload yaptığımız gibi constructor’ları da overload yapabiliyoruz. Member Initializer List Sınıfa ait değişkenlere değer atarken şuana kadar hep constructor fonksiyonunun gövdesinde yaptık.…
-
CPP 049 – .h & .cpp
Şuana kadar farklı sınıfları hep aynı dosyanın içine yazıp öyle çalıştırdık. Fakat bu ölçeklenebilir bir davranış değil. Onbinlerce yüzbinlerce satır kodun tek bir dosyada olması sıkıntılı bir durum. Bu sebeple bunları ayrı dosyaların içine nasıl yazabileceğimizi göstereceğiz. Şimdi main.cpp de şöyle bir kodumuz olsun: Person isminde bir sınıf oluşturduk sonra main() fonksiyonunda 2 adet obje…
-
CPP 048 – Virtual Functions
Aşağıda A ve B olmak üzere iki sınıf var. B, A’dan miras alıyor. Daha sonra her ikisine de f() fonksiyonunu ekliyoruz. A türüne ait bir pointer oluşturup sırasıyla a ve b nesnelerini atayıp f() fonksiyonunu çağırınca Base class’a ait f() fonksiyonu çalıştı. A sınıfına ait bir nesne için A::f() basması gayet mantıklı fakat B sınıfına…
-
CPP 047 – Interface
Birbirinden miras alan sınıflar birbirine mantıksal olarak bağlıdır. Örneğin Öğretmen sınıfı İnsan sınıfından miras alabilir. Çünkü bir öğretmen aynı zamanda bir insandır. Öğretmen insana ait olan özellikleri ve davranışları taşır fakat öte yandan At sınıfı, İnsan sınıfından miras alamaz. Çünkü atlar birer insan değildir. Atların insan olmaması bu iki canlı arasında benzerliklerin olmayacağı anlamına gelmiyor.…
-
Learn to Storyboard for Film or Animation
https://www.udemy.com/course/storyboard-for-film-or-animation My personal notes about this course: Introduction Story Board Nedir? Storyboarding for film and animation share similarities but also have some key differences. In film, storyboards focus on capturing the visual composition, camera angles, and blocking of live-action scenes. They help directors and cinematographers plan shots and convey the intended visual narrative. In animation,…
-

Grid Based Mesh Instancing by obj Data on Godot 3D
We will create a obj file as a grid reference. After we’ll fill it with meshes. Create grid obj file file -> export -> wavefront .obj We dont need UV and normals Read grid obj file Inside of an obj file If we open our .obj file we will see something like this: Code for…
-
ENG 013 – Present Perfect Tenses
verb 3 (past participle) regular verbs: play(V1) – played(V2) – played(V3)
-
ENG 012 – Future Tenses
will & be going to Gelecekte gerçekleşen olayları anlatmak için kullanılırlar: Quick decisionsPrior plansPromises, offfers & threatsSomething is about to happen at an Habits & predictable behavioursrefusals Will quick decisions Promises, offers & threats Habits & predictable behaviours Refusals Be going to Prior plans Something is about to happen at any moment Strong evidence /…
-
Assert in Unreal
assert will terminate the program (usually with a message quoting the assert statement) if its argument turns out to be false. It’s commonly used during debugging to make the program fail more obviously if an unexpected condition occurs.https://stackoverflow.com/questions/1571340/what-is-the-assert-function check, verify, ensure https://dev.epicgames.com/documentation/en-us/unreal-engine/asserts-in-unreal-engine
-
WD 005 – CSS İleri Seviye
Fonts Google Fonts Units İki tiptir: UnitDescriptioncmcentimetersTry itmmmillimetersTry itininches (1in = 96px = 2.54cm)Try itpx *pixels (1px = 1/96th of 1in)Try itptpoints (1pt = 1/72 of 1in)Try itpcpicas (1pc = 12 pt)https://www.w3schools.com/cssref/css_units.php UnitDescriptionemRelative to the font-size of the element (2em means 2 times the size of the current font)exRelative to the x-height of the current…
-
WD 004 – CSS Orta Seviye
Width & Height CSS Height&Width Values The height and width properties may have the following values: https://www.w3schools.com/css/css_dimension.asp Display Box Model width + padding + border = actual width of an elementheight + padding + border = actual height of an element Eğer css de verdiğimiz yükseklik ve genişlik değerleri content’in yüksekliği ve genişliği değil de content+padding+border olsun istiyorsak: Text…
-
WD 003 – CSS Temel Seviye
CSS Nedir? CSS, HTML dosyalırımızın stilini belirlemek için kullandığımız stil şablonlarıdır. Faydalı Kaynaklar CSS Nasıl Eklenir? HTML dosyamıza CSS eklememizin üç yolu bulunmaktadır: Selectors Uygulanacak stil kurallarının hangi elemanlara etki edeceğini seçiyoruz: https://www.w3schools.com/cssref/css_selectors.php CSS Specificity Aynı elemanı tanımlayan birden fazla css kuralı varsa hangisinin geçerli olacağını belirtir. PriorityExampleDescriptionInline style<h1 style=”color: pink;”>Highest priority, directly applied with the…
-
ENG 011 – Adjectives and Adverbs
https://www.grammarbook.com/grammar/adjAdv.asp Adjectives Adjectives (Sıfatlar) : isimleri ve zamirleri niteliyebilir. Demonstrative Adjectives İşaret Sıfatları:this, that, these, those Possessive Adjectives Aitlik sıfatları:My, your, his, her, its, our their -ed and -ing adjectives Fiillere -ed ve -ing eklenerek sıfatlaşabilir. -ed, duygu ve düşünceleri belirtmek için, -ing durumları tarif etmek için kullanılır. Adjective Suffixes Kelimenin sonuna eklenerek sıfat yapan…
